Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1291 - 1300 of 6,241 for if (0.02 sec)

  1. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

            final Object obj = sourceMap.get(name);
            if (obj instanceof Date) {
                return (Date) obj;
            }
            if (obj instanceof Number) {
                return new Date(((Number) obj).longValue());
            }
            if (obj instanceof String) {
                final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. internal/http/listener_test.go

    			if !expectedListenErr {
    				if listenErrs[i] != nil {
    					t.Fatalf("Test %d:, listenErrs[%d] error: expected = <nil>, got = %v", testIdx+1, i, listenErrs[i])
    				}
    			} else if listenErrs[i] == nil {
    				t.Fatalf("Test %d: listenErrs[%d]: expected = %v, got = <nil>", testIdx+1, i, expectedListenErr)
    			}
    		}
    		if listener != nil {
    			listener.Close()
    		}
    	}
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. cmd/xl-storage_unix_test.go

    	// Stat to get permissions bits.
    	st, err := os.Stat(path.Join(tmpPath, testCase.volName))
    	if err != nil {
    		t.Fatalf("Stat failed with %s expected to pass.", err)
    	}
    
    	// Get umask of the bits stored.
    	currentUmask := 0o777 - uint32(st.Mode().Perm())
    
    	// Verify if umask is correct.
    	if int(currentUmask) != testCase.expectedUmask {
    		t.Fatalf("Umask check failed expected %d, got %d", testCase.expectedUmask, currentUmask)
    	}
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. cmd/peer-rest-client.go

    			if gridHost == "" {
    				bugLogIf(context.Background(), fmt.Errorf("gridHost is empty for peer %s", peer.String()), peer.String()+":gridHost")
    				return nil
    			}
    			gc := gridConn.Load()
    			if gc != nil {
    				return gc
    			}
    			gm := globalGrid.Load()
    			if gm == nil {
    				return nil
    			}
    			gc = gm.Connection(gridHost)
    			if gc == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        public <T> T convertIfNeed(final Object arg) {
            if (propertyType.isPrimitive()) {
                return (T) convertPrimitiveWrapper(arg);
            } else if (Number.class.isAssignableFrom(propertyType)) {
                return (T) convertNumber(arg);
            } else if (java.util.Date.class.isAssignableFrom(propertyType)) {
                return (T) convertDate(arg);
            } else if (Boolean.class.isAssignableFrom(propertyType)) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

         * @return number of bytes read
         *
         * @throws IOException
         *             if a network error occurs
         */
        public int readDirect ( byte[] b, int off, int len ) throws IOException {
            if ( len <= 0 ) {
                return 0;
            }
            long start = this.fp;
    
            if ( this.tmp == null ) {
                throw new IOException("Bad file descriptor");
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/NbtAddress.java

                        if( ++i >= data.length )
                            break;
    
                        c = data[i];
                    }
                    if( b > 0xFF ) {
                        return (NbtAddress)doNameQuery( new Name( host, type, scope ), svr );
                    }
                    IP = ( IP << 8 ) + b;
                    hitDots++;
                }
                if( hitDots != 4 || host.endsWith( "." )) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 30.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

         */
    
        public synchronized int read( byte[] b, int off, int len ) throws IOException {
            if( len == 0 ) {
                return 0;
            }
            tot = 0;
    
            while( true ) {
                while( bip > 0 ) {
                    n = in.read( b, off, Math.min( len, bip ));
                    if( n == -1 ) {
                        return tot > 0 ? tot : -1;
                    }
                    tot += n;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        // If the non-host fields of the address don't overlap, we're done.
        if (!this.route.address.equalsNonHost(address)) return false
    
        // If the host exactly matches, we're done: this connection can carry the address.
        if (address.url.host == this.route().address.url.host) {
          return true // This connection is a perfect match.
        }
    
        // At this point we don't have a hostname match. But we still be able to carry the request if
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsElevateWordToLabelCQ.java

            if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
                BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(),
                        mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
                if (opLambda != null) {
                    opLambda.callback(builder);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top