Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 222 for system (0.18 sec)

  1. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

         * than relying on the one from the system property.
         *
         * - Under Java 8, createTempDir() fails because it falls back to the bogus username from the
         * system property.
         */
    
        String save = System.getProperty("user.name");
        System.setProperty("user.name", "-this-is-definitely-not-the-username-we-are-running-as//?");
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        else super.runTest();
      }
    
      protected void runTestProfiled() throws Throwable {
        long t0 = System.nanoTime();
        try {
          super.runTest();
        } finally {
          long elapsedMillis = (System.nanoTime() - t0) / (1000L * 1000L);
          if (elapsedMillis >= profileThreshold)
            System.out.printf("%n%s: %d%n", toString(), elapsedMillis);
        }
      }
    
      //     /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java

    import java.net.URLClassLoader;
    
    // TODO(b/65488446): Make this a public API.
    /** Utility method to parse the system class path. */
    final class ClassPathUtil {
      private ClassPathUtil() {}
    
      /**
       * Returns the URLs in the class path specified by the {@code java.class.path} {@linkplain
       * System#getProperty system property}.
       */
      // TODO(b/65488446): Make this a public API.
      static URL[] parseJavaClassPath() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 13 20:26:15 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        // Hack to load AbstractFuture et. al. in a new classloader so that it re-reads the cancellation
        // cause system property.  This allows us to run with both settings of the property in one jvm
        // without resorting to even crazier hacks to reset static final boolean fields.
        System.setProperty("guava.concurrent.generate_cancellation_cause", "true");
        final String concurrentPackage = SettableFuture.class.getPackage().getName();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  5. guava-bom/pom.xml

      </parent>
    
      <name>Guava BOM</name>
      <description>BOM for Guava artifacts</description>
      <url>https://github.com/google/guava</url>
      <inceptionYear>2010</inceptionYear>
    
      <issueManagement>
        <system>GitHub Issues</system>
        <url>https://github.com/google/guava/issues</url>
      </issueManagement>
    
      <licenses>
        <license>
          <name>Apache License, Version 2.0</name>
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 10 15:48:57 GMT 2020
    - 1.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        }
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
    
      public void testRenaming_noPermissions() throws Exception {
        System.setSecurityManager(
            new SecurityManager() {
              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Monitor.java

      }
    
      /**
       * Returns System.nanoTime() unless the timeout has already elapsed. Returns 0L if and only if the
       * timeout has already elapsed.
       */
      private static long initNanoTime(long timeoutNanos) {
        if (timeoutNanos <= 0L) {
          return 0L;
        } else {
          long startTime = System.nanoTime();
          return (startTime == 0L) ? 1L : startTime;
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

        }
      }
    
      private static Long[] concat(Long[] left, Long[] right) {
        Long[] result = new Long[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestLongListGenerator implements TestListGenerator<Long> {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  9. futures/listenablefuture9999/pom.xml

        version number is enough for some build systems (notably, Gradle) to select
        that empty artifact over the "real" listenablefuture-1.0 -- avoiding a
        conflict with the copy of ListenableFuture in guava itself. If users are
        using an older version of Guava or a build system other than Gradle, they
        may see class conflicts. If so, they can solve them by manually excluding
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 12 21:42:09 GMT 2018
    - 2.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          String[] prefix = {"f", "g"};
          String[] suffix = {"h", "i"};
    
          String[] all = new String[2 + elements.length + 2];
          System.arraycopy(prefix, 0, all, 0, 2);
          System.arraycopy(elements, 0, all, 2, elements.length);
          System.arraycopy(suffix, 0, all, 2 + elements.length, 2);
    
          return ImmutableList.copyOf(all).subList(2, elements.length + 2);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top