- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 88 for normalize (0.06 sec)
-
compat/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java
*/ class DefaultUrlNormalizerTest { private UrlNormalizer normalizer = new DefaultUrlNormalizer(); private String normalize(String url) { return normalizer.normalize(url); } @Test void testNullSafe() { assertNull(normalize(null)); } @Test void testTrailingSlash() { assertEquals("", normalize(""));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.7K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelUrlNormalizer.java
} @Override public void normalize(Model model, ModelBuildingRequest request) { if (model == null) { return; } model.setUrl(normalize(model.getUrl())); Scm scm = model.getScm(); if (scm != null) { scm.setUrl(normalize(scm.getUrl())); scm.setConnection(normalize(scm.getConnection()));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.4K bytes - Viewed (1) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/path/UrlNormalizer.java
* @return The normalized URL or {@code null} if the input was {@code null}. */ String normalize(String url);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/normalizer/AnalyzerNormalizer.java
} normalizer = chain; } return normalizer.normalize(text, field); } protected class LangAnalyzerNormalizer implements Normalizer { protected final String lang; protected LangAnalyzerNormalizer(final String lang) { this.lang = lang; } @Override
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 2.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java
settings.badword().delete(normalizer.normalize(badWord, "")); } public SuggestIndexResponse addElevateWord(final ElevateWord elevateWord, final boolean apply) { final String normalizedWord = normalizer.normalize(elevateWord.getElevateWord(), ""); final List<String> normalizedReadings = elevateWord.getReadings().stream().map(reading -> normalizer.normalize(reading, "")).collect(Collectors.toList());
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 26.1K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/path/ModelUrlNormalizer.java
* @param request The model building request that holds further settings, must not be {@code null}. */ void normalize(Model model, ModelBuildingRequest request);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultPathTranslator.java
path = path.replace('\\', File.separatorChar).replace('/', File.separatorChar); File file = new File(path); if (file.isAbsolute()) { // path was already absolute, just normalize file separator and we're done result = file.getPath(); } else if (file.getPath().startsWith(File.separator)) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/UrlNormalizingPostProcessor.java
} private UrlNormalizer normalizer; UrlNormalizingPostProcessor(UrlNormalizer normalizer) { this.normalizer = normalizer; } @Override public Object execute(String expression, Object value) { if (value != null && URL_EXPRESSIONS.contains(expression)) { return normalizer.normalize(value.toString()); } return null; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java
return null; } String s = stripBasedirToken(path); File file = new File(s); if (file.isAbsolute()) { // path was already absolute, just normalize file separator and we're done s = file.getPath(); } else if (file.getPath().startsWith(File.separator)) { // drive-relative Windows path, don't align with project directory but with drive root
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java
if (Files.isDirectory(pomPath)) { pomPath = context.locate(pomPath); } if (pomPath == null || !Files.isRegularFile(pomPath)) { return Optional.empty(); } Optional<RelativeProject> mappedProject = Optional.ofNullable(context.getRawModel(pomFile, pomPath.normalize()))
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.5K bytes - Viewed (0)