Skip to content

Commit

Permalink
9 fix path pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknow0 committed Aug 26, 2023
1 parent bd0eac0 commit c387b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
7 changes: 0 additions & 7 deletions unknow-http-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.jakarta.rs</groupId>
<artifactId>jackson-jakarta-rs-json-provider</artifactId>
<version>2.14.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,10 @@ public void process(ClassModel clazz) {
methods.putIfAbsent(m.signature(), m);
}
}
if (basePath == null)
basePath = "";
if (basePath == null || basePath.isEmpty())
basePath = "/";
if (basePath.length() > 1 && basePath.endsWith("/"))
basePath = basePath.substring(0, basePath.length() - 1);
if (basePath.length() > 1 && basePath.charAt(0) == '/')
basePath = basePath.substring(1);
if (baseConsume == null)
baseConsume = ALL;
if (baseProduce == null)
Expand Down

0 comments on commit c387b68

Please sign in to comment.