- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 22 for checkCast (1.48 seconds)
-
guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java
* * <p><strong>This .java file should never be consumed by javac.</strong> * * @author Hayward Chan */ final class Platform { // Class.cast is not supported in GWT. static void checkCast(Class<?> clazz, Object obj) {} static <T> T[] clone(T[] array) { return (T[]) Arrays.copyOfRange(array, 0, array.length); } // TODO: Consolidate different copies in one single place.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/Platform.java
*/ @GwtCompatible final class Platform { static <T> T[] clone(T[] array) { return array.clone(); } // Class.cast is not supported in GWT. This method is a no-op in GWT. static void checkCast(Class<?> clazz, Object obj) { Object unused = clazz.cast(obj); } @FormatMethod static String format(String template, Object... args) { return String.format(Locale.ROOT, template, args); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 1.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/Platform.java
*/ @GwtCompatible final class Platform { static <T> T[] clone(T[] array) { return array.clone(); } // Class.cast is not supported in GWT. This method is a no-op in GWT. static void checkCast(Class<?> clazz, Object obj) { Object unused = clazz.cast(obj); } @FormatMethod static String format(String template, Object... args) { return String.format(Locale.ROOT, template, args); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 1.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
return contents.length; } @Override public boolean contains(@Nullable Object object) { if (!allowNulls) { // behave badly checkNotNull(object); } Platform.checkCast(type, object); // behave badly return asList(contents).contains(object); } @Override public boolean containsAll(Collection<?> collection) { if (!allowNulls) { for (Object object : collection) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 3.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
return contents.length; } @Override public boolean contains(@Nullable Object object) { if (!allowNulls) { // behave badly checkNotNull(object); } Platform.checkCast(type, object); // behave badly return asList(contents).contains(object); } @Override public boolean containsAll(Collection<?> collection) { if (!allowNulls) { for (Object object : collection) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 3.8K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java
import static org.mockito.Mockito.when; /** * Unit tests for the {@link Check} goal class. * Tests the Check-specific functionality including read-only behavior. */ @DisplayName("Check") class CheckTest { private Check checkGoal; private StrategyOrchestrator mockOrchestrator; @BeforeEach void setUp() { mockOrchestrator = mock(StrategyOrchestrator.class);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 4.9K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionArchiveCheckPlugin.java
TaskProvider<Task> checkNotice = registerCheckNoticeTask(project, checkExtraction); TaskProvider<Task> checkTask = project.getTasks().named("check"); checkTask.configure(task -> { task.dependsOn(checkExtraction); task.dependsOn(checkLicense); task.dependsOn(checkNotice); });Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 10.6K bytes - Click Count (0) -
.github/PULL_REQUEST_TEMPLATE.md
- [ ] New feature (non-breaking change which adds functionality) - [ ] Optimization (provides speedup with no functional changes) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: - [ ] Fixes a regression (If yes, please add `commit-id` or `PR #` here) - [ ] Unit tests added/updated - [ ] Internal documentation updated
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Nov 14 17:29:11 GMT 2023 - 1K bytes - Click Count (0) -
.github/PULL_REQUEST_TEMPLATE.md
<!--- The issue this PR addresses --> <!-- Fixes #? --> ### Context <!--- Why do you believe many users will benefit from this change? --> <!--- Link to relevant issues or forum discussions here --> ### Contributor Checklist - [ ] [Review Contribution Guidelines](https://github.com/gradle/gradle/blob/master/CONTRIBUTING.md).
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Feb 13 22:36:19 GMT 2024 - 1.7K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/bug_report.yaml
multiple: true options: - Android - GWT - Java 8 - Java 11 - Java 17 - Java 21 - type: checkboxes attributes: label: Checklist options: - label: > I agree to follow the [code of conduct](https://github.com/google/.github/blob/master/CODE_OF_CONDUCT.md). required: true - label: >Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 16 20:08:25 GMT 2024 - 2.9K bytes - Click Count (0)