- Sort Score
- Result 10 results
- Languages All
Results 1231 - 1240 of 1,922 for Try (1.35 sec)
-
android/guava/src/com/google/common/collect/Cut.java
@Override public boolean equals(@CheckForNull Object obj) { if (obj instanceof Cut) { // It might not really be a Cut<C>, but we'll catch a CCE if it's not Cut<C> that = (Cut<C>) obj; try { int compareResult = compareTo(that); return compareResult == 0; } catch (ClassCastException wastNotComparableToOurType) { return false; } } return false; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 12.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
return arbitraryConstantInstanceOrNull(type); } final Constructor<T> constructor; try { constructor = type.getConstructor(); } catch (NoSuchMethodException e) { return arbitraryConstantInstanceOrNull(type); } constructor.setAccessible(true); // accessibility check is too slow try { return constructor.newInstance();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 21.2K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Invokable.java
public final boolean trySetAccessible() { // We can't call accessibleObject.trySetAccessible since that was added in Java 9 and this code // should work on Java 8. So we emulate it this way. try { accessibleObject.setAccessible(true); return true; } catch (Exception e) { // sneaky checked exception return false; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 19.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java
if (StringUtil.isBlank(cause.getMessage())) { sb.append(cause.getClass().getName()); } else { sb.append(cause.getMessage()); } try (final StringWriter sw = new StringWriter(); final PrintWriter pw = new PrintWriter(sw)) { cause.printStackTrace(pw); pw.flush(); sb.append(" [ ").append(sw.toString()).append(" ]");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java
.addEqualityGroup(Subscriber.create(bus, "bar", charAt)) .addEqualityGroup(Subscriber.create(bus, "foo", concat)) .testEquals(); } private Method getTestSubscriberMethod(String name) { try { return getClass().getDeclaredMethod(name, Object.class); } catch (NoSuchMethodException e) { throw new AssertionError(); } } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.8K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java
Files.createDirectories(appJava.getParent()); Files.writeString(appJava, appJavaString); Parser<R> parser = createParser(); try (Invoker<R> invoker = createInvoker()) { for (String goal : goals) { Path logFile = cwd.resolve(goal + "-build.log").toAbsolutePath();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.8K bytes - Viewed (0) -
docs_src/security/tutorial005_py39.py
credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials", headers={"WWW-Authenticate": authenticate_value}, ) try: payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM]) username: str = payload.get("sub") if username is None: raise credentials_exception
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.2K bytes - Viewed (0) -
src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/KuromojiTokenizerFactory.java
throw new IllegalArgumentException( "It is not allowed to use [" + USER_DICT_PATH_OPTION + "] in conjunction" + " with [" + USER_DICT_RULES_OPTION + "]"); } try { Set<String> dup = new HashSet<>(); List<String> ruleList = Analysis.parseWordList(env, settings, USER_DICT_PATH_OPTION, USER_DICT_RULES_OPTION, s -> parse(s, dup));
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.7K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/MergerTest.java
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; class MergerTest { @Test void testMergerPreserveLocations() throws Exception { try (InputStream is = getClass().getResourceAsStream("/poms/factory/complex.xml")) { InputSource inputSource = new InputSource(null, "classpath:/poms/factory/complex.xml");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java
bindingMap.put("container", SingletonLaContainerFactory.getContainer()); final GroovyShell groovyShell = new GroovyShell(new Binding(bindingMap)); try { return groovyShell.evaluate(template); } catch (final JobProcessingException e) { throw e; } catch (final Exception e) { return null;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.6K bytes - Viewed (0)