Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1111 - 1120 of 1,922 for try (0.02 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            }
        }
    
        public void markForDeletion(File toDelete) {
            filesToDelete.add(toDelete);
            warnAboutCleanup = true;
        }
    
        public synchronized File createTempDir() {
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                // ignore
            }
    
            File dir = new File(TEMP_DIR_PATH, baseFilename + System.currentTimeMillis());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileSelector.java

            boolean isActive = false;
            for (ProfileActivator activator : activators) {
                if (activator.presentInConfig(profile, context, problems)) {
                    isActive = true;
                    try {
                        if (!activator.isActive(profile, context, problems)) {
                            return false;
                        }
                    } catch (RuntimeException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. docs_src/security/tutorial005_an_py310.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)
  4. docs_src/security/tutorial005_an_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.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NetServerEnum2.java

            return 0;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
            int start = dstIndex;
            byte[] descr;
            int which = subCommand == NET_SERVER_ENUM2 ? 0 : 1;
    
            try {
                descr = DESCR[which].getBytes( "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
    
            writeInt2( subCommand & 0xFF, dst, dstIndex );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.5K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/ReleaseArtifactTransformation.java

                throws ArtifactResolutionException, ArtifactNotFoundException {
            if (Artifact.RELEASE_VERSION.equals(artifact.getVersion())) {
                try {
                    String version = resolveVersion(artifact, request);
    
                    if (Artifact.RELEASE_VERSION.equals(version)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java

      public void testContains_nullContained() {
        initMapWithNullValue();
        assertTrue("containsValue(null) should return true", getMap().containsValue(null));
      }
    
      public void testContains_wrongType() {
        try {
          // noinspection SuspiciousMethodCalls
          assertFalse(
              "containsValue(wrongType) should return false or throw",
              getMap().containsValue(WrongType.VALUE));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/RenderMarkdown.java

            Charset inputEncoding = Charset.forName(getInputEncoding().get());
    
            File destination = getDestinationFile().get().getAsFile();
            Charset outputEncoding = Charset.forName(getOutputEncoding().get());
            try (InputStreamReader inputStream = new InputStreamReader(new FileInputStream(markdownFile), inputEncoding);
                 OutputStreamWriter outputStream = new OutputStreamWriter(new FileOutputStream(destination), outputEncoding)) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  9. test-site/app/models/ContentsCreator.java

            Queue<String> queue = getUrls();
    
            String url;
            int count = 0;
            while((url = queue.poll()) != null && count < max) {
    
                try {
                    Logger.info("crawling: " + url);
                    HttpUriRequest request = new HttpGet(url);
                    HttpResponse response = httpClient.execute(request);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Fri Nov 06 08:48:32 UTC 2015
    - 3.7K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            this.substitute = substitute;
        }
    
        public void load(Path location) throws IOException {
            try (InputStream is = Files.newInputStream(location)) {
                load(is);
            }
        }
    
        public void load(URL location) throws IOException {
            try (InputStream is = location.openStream()) {
                load(is);
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top