Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 712 for Blaser (0.16 sec)

  1. android/guava/src/com/google/common/io/Closer.java

     *
     * <pre>{@code
     * Closer closer = Closer.create();
     * try {
     *   InputStream in = closer.register(openInputStream());
     *   OutputStream out = closer.register(openOutputStream());
     *   // do stuff
     * } catch (Throwable e) {
     *   // ensure that any checked exception types other than IOException that could be thrown are
     *   // provided here, e.g. throw closer.rethrow(e, CheckedException.class);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CloserTest.java

      public void testCreate() {
        assertThat(Closer.create().suppressor).isInstanceOf(Closer.SuppressingSuppressor.class);
      }
    
      public void testNoExceptionsThrown() throws IOException {
        Closer closer = new Closer(suppressor);
    
        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
        TestCloseable c3 = closer.register(TestCloseable.normal());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                    new ClosingCallable<TestCloseable>() {
                      @Override
                      public TestCloseable call(DeferredCloser closer) throws Exception {
                        closer.eventuallyClose(closeable1, closingExecutor);
                        closer.eventuallyClose(closeable2, closingExecutor);
                        return closeable3;
                      }
                    },
                    executor)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(
                new ClosingCallable<Closeable>() {
                  @Override
                  public Closeable call(DeferredCloser closer) throws Exception {
                    return closer.eventuallyClose(mockCloseable, executor);
                  }
                },
                executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
        assertThrows(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

        }
    
        @Override
        public byte[] read() throws IOException {
          Closer closer = Closer.create();
          try {
            FileInputStream in = closer.register(openStream());
            return ByteStreams.toByteArray(in, in.getChannel().size());
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        manifest.getMainAttributes().put(Attributes.Name.CLASS_PATH, jarFile.getName());
    
        Closer closer = Closer.create();
        try {
          FileOutputStream fileOut = closer.register(new FileOutputStream(jarFile));
          JarOutputStream jarOut = closer.register(new JarOutputStream(fileOut));
          for (String entry : entries) {
            jarOut.putNextEntry(new ZipEntry(entry));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 07 16:50:33 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        manifest.getMainAttributes().put(Attributes.Name.CLASS_PATH, jarFile.getName());
    
        Closer closer = Closer.create();
        try {
          FileOutputStream fileOut = closer.register(new FileOutputStream(jarFile));
          JarOutputStream jarOut = closer.register(new JarOutputStream(fileOut));
          for (String entry : entries) {
            jarOut.putNextEntry(new ZipEntry(entry));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/ToDoubleRounder.java

              X deltaToCeiling = minus(roundCeiling, x);
              int diff = deltaToFloor.compareTo(deltaToCeiling);
              if (diff < 0) { // closer to floor
                return roundFloorAsDouble;
              } else if (diff > 0) { // closer to ceiling
                return roundCeilingAsDouble;
              }
              // halfway between the representable values; do the half-whatever logic
              switch (mode) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

       * and https://github.com/jspecify/jspecify/issues/490.
       *
       * (That would also have ensured that its cause was always an Error, rather than possibly another
       * kind of Throwable that was later passed to initCause. Then we could have declared the override
       * `public final Error getCause()`.)
       */
    
      /**
       * Creates a new instance with {@code null} as its detail message and no cause.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/toolchain/ToolchainManagerPrivate.java

    /**
     * Component for use by the <code>maven-toolchains-plugin</code> only.
     * It provides API: <ol>
     * <li>to retrieve every toolchains available in user settings,</li>
     * <li>to store chosen toolchain into build context for later use by toolchain-aware plugins.</li>
     * </ol>
     *
     * @since 2.0.9
     * @see ToolchainManager#getToolchainFromBuildContext(String, MavenSession)
     */
    public interface ToolchainManagerPrivate {
    
        /**
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.1K bytes
    - Viewed (0)
Back to top