Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 394 for setClass (0.1 sec)

  1. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

         * @return 変換された{@link Date}
         */
        protected static Date toDate(final Object src, final String pattern, final Locale locale) {
            if (src == null) {
                return null;
            }
            if (src.getClass() == Date.class) {
                return (Date) src;
            }
            if (src instanceof Date) {
                return new Date(((Date) src).getTime());
            }
            if (src instanceof Calendar) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

     */
    class DefaultModelValidatorTest {
    
        private ModelValidator validator;
    
        private Model read(String pom) throws Exception {
            String resource = "/poms/validation/" + pom;
            try (InputStream is = getClass().getResourceAsStream(resource)) {
                assertNotNull(is, "missing resource: " + resource);
                return new Model(new MavenStaxReader().read(is));
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NetworkExplorer.java

                    new NtlmSsp();
                }
                else {
                    this.credentialsSupplied = true;
                }
    
                try {
                    try ( InputStream is = getClass().getClassLoader().getResourceAsStream("jcifs/http/ne.css"); ) {
                        while ( ( n = is.read(buf) ) != -1 ) {
                            sb.append(new String(buf, 0, n, "ISO8859_1"));
                        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/MethodUtil.java

            buf.append(methodName).append("(");
            if (methodArgs != null && methodArgs.length > 0) {
                for (final Object arg : methodArgs) {
                    buf.append(arg == null ? null : arg.getClass().getName()).append(", ");
                }
                buf.setLength(buf.length() - 2);
            }
            buf.append(")");
            return buf.toString();
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. misc/go_android_exec/main.go

    	}
    	return exec.Command("adb", args...)
    }
    
    const (
    	deviceRoot   = "/data/local/tmp/go_android_exec"
    	deviceGoroot = deviceRoot + "/goroot"
    )
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("go_android_exec: ")
    	exitCode, err := runMain()
    	if err != nil {
    		log.Fatal(err)
    	}
    	os.Exit(exitCode)
    }
    
    func runMain() (int, error) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        void assertPermitted(Exception exception) {
          if (!isPermitted(exception)) {
            String message =
                "Exception "
                    + exception.getClass().getSimpleName()
                    + " was thrown; expected "
                    + getMessage();
            throw new AssertionError(message, exception);
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                    // NOTE: There's java.nio.charset.MalformedInputException and sun.io.MalformedInputException
                    if (e.getClass().getName().endsWith("MalformedInputException")) {
                        msg = "Some input bytes do not match the file encoding.";
                    } else {
                        msg = e.getClass().getSimpleName();
                    }
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

        @PostConstruct
        public void init() {
            if (logger.isDebugEnabled()) {
                logger.debug("Initialize {}", this.getClass().getSimpleName());
            }
            final Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
            cal.set(2026, 3 - 1, 1); // EOL Date
            eolTime = cal.getTimeInMillis();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

          latch.await();
        }
    
        @Override
        protected void triggerShutdown() {
          latch.countDown();
        }
    
        @Override
        protected String serviceName() {
          return this.getClass().getSimpleName() + "[" + index + "]";
        }
      }
    
      public void testNulls() {
        ServiceManager manager = new ServiceManager(Arrays.<Service>asList());
        new NullPointerTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/ArrayMap.java

         * @return 配列
         */
        public V[] toArray(final V[] proto) {
            @SuppressWarnings("unchecked")
            final V[] array = proto.length >= size ? proto : (V[]) Array.newInstance(proto.getClass().getComponentType(), size);
            for (int i = 0; i < array.length; i++) {
                array[i] = getAt(i);
            }
            if (array.length > size) {
                array[size] = null;
            }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top