Skip to content

Commit d9d981b

Browse files
Simplify package structure
1 parent 2f2e1fd commit d9d981b

102 files changed

Lines changed: 484 additions & 455 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/context/AttributeSupport.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/AttributeSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.context;
15+
package io.github.problem4j.spring.web;
1616

1717
import io.github.problem4j.core.ProblemContext;
1818

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/util/ClassDistanceEvaluation.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/ClassDistanceEvaluation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.util;
15+
package io.github.problem4j.spring.web;
1616

1717
/**
1818
* Strategy for calculating the inheritance distance between two Java classes or interfaces.

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/format/DefaultProblemFormat.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/DefaultProblemFormat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.format;
15+
package io.github.problem4j.spring.web;
1616

17-
import io.github.problem4j.spring.web.ProblemProperties;
17+
import io.github.problem4j.spring.web.autoconfigure.ProblemProperties;
1818
import java.util.Locale;
1919
import org.springframework.util.StringUtils;
2020

2121
/**
2222
* Default implementation of {@link ProblemFormat} that applies text transformations to problem
2323
* details according to a configured format.
2424
*
25-
* <p>Property {@link ProblemProperties#getDetailFormat()} determines formatting behaviour -
25+
* <p>Property {@link ProblemProperties#getDetailFormat()} determines formatting behavior -
2626
* lowercase, capitalized, or uppercase.
2727
*
2828
* <p>This class is typically registered automatically as a Spring bean, but can also be

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/processor/DefaultProblemPostProcessor.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/DefaultProblemPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.processor;
15+
package io.github.problem4j.spring.web;
1616

1717
import io.github.problem4j.core.Problem;
1818
import io.github.problem4j.core.ProblemBuilder;

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/DefaultProblemResolverStore.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414
*/
1515
package io.github.problem4j.spring.web;
1616

17-
import static io.github.problem4j.spring.web.util.HierarchyTraversalMode.SUPERCLASS;
17+
import static io.github.problem4j.spring.web.HierarchyTraversalMode.SUPERCLASS;
1818

1919
import io.github.problem4j.spring.web.resolver.ProblemResolver;
20-
import io.github.problem4j.spring.web.util.ClassDistanceEvaluation;
21-
import io.github.problem4j.spring.web.util.GraphClassDistanceEvaluation;
2220
import java.util.ArrayList;
2321
import java.util.Comparator;
2422
import java.util.HashMap;

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/util/GraphClassDistanceEvaluation.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/GraphClassDistanceEvaluation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.util;
15+
package io.github.problem4j.spring.web;
1616

1717
import java.util.Collection;
1818
import java.util.Objects;

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/util/HierarchyTraversalMode.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/HierarchyTraversalMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.util;
15+
package io.github.problem4j.spring.web;
1616

1717
/**
1818
* Defines which parts of the class hierarchy are traversed by {@link GraphClassDistanceEvaluation}

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/format/IdentityProblemFormat.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/IdentityProblemFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.format;
15+
package io.github.problem4j.spring.web;
1616

1717
/** Convenience implementation for {@link ProblemFormat} which doesn't transform input data. */
1818
public class IdentityProblemFormat implements ProblemFormat {

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/processor/IdentityProblemPostProcessor.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/IdentityProblemPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.processor;
15+
package io.github.problem4j.spring.web;
1616

1717
import io.github.problem4j.core.Problem;
1818
import io.github.problem4j.core.ProblemContext;

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/processor/PostProcessorSettings.java renamed to problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/PostProcessorSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* SPDX-License-Identifier: MIT
1414
*/
15-
package io.github.problem4j.spring.web.processor;
15+
package io.github.problem4j.spring.web;
1616

1717
/**
1818
* Defines configuration settings used by {@link ProblemPostProcessor} implementations to control

0 commit comments

Comments
 (0)