Remove punctuation in all exception messages.

Closes #2603.
This commit is contained in:
jo
2022-06-04 16:05:30 +02:00
committed by John Blum
parent 6e9a3cdccf
commit 6a23723f07
99 changed files with 275 additions and 174 deletions

View File

@@ -60,6 +60,7 @@ import com.querydsl.core.types.Path;
* @author Christoph Strobl
* @author Oliver Gierke
* @author Mark Paluch
* @author Johannes Englmeier
* @since 1.11
* @see QuerydslBinderCustomizer
*/
@@ -357,7 +358,7 @@ public class QuerydslBindings {
Path<?> rootPath = path.getMetadata().getRootPath();
if (rootPath == null) {
throw new IllegalStateException(String.format("Couldn't find root path on path %s!", path));
throw new IllegalStateException(String.format("Couldn't find root path on path %s", path));
}
return path.toString().substring(rootPath.getMetadata().getName().length() + 1);

View File

@@ -38,6 +38,7 @@ import com.querydsl.core.types.dsl.SimpleExpression;
* @author Christoph Strobl
* @author Oliver Gierke
* @author Colin Gao
* @author Johannes Englmeier
* @since 1.11
*/
class QuerydslDefaultBinding implements MultiValueBinding<Path<? extends Object>, Object> {
@@ -78,6 +79,6 @@ class QuerydslDefaultBinding implements MultiValueBinding<Path<? extends Object>
}
throw new IllegalArgumentException(
String.format("Cannot create predicate for path '%s' with type '%s'.", path, path.getMetadata().getPathType()));
String.format("Cannot create predicate for path '%s' with type '%s'", path, path.getMetadata().getPathType()));
}
}

View File

@@ -30,6 +30,7 @@ import com.querydsl.core.types.Path;
*
* @author Oliver Gierke
* @author Mark Paluch
* @author Johannes Englmeier
* @since 1.13
*/
class QuerydslPathInformation implements PathInformation {
@@ -60,7 +61,7 @@ class QuerydslPathInformation implements PathInformation {
Path<?> parent = path.getMetadata().getParent();
if (parent == null) {
throw new IllegalStateException(String.format("Could not obtain metadata for parent node of %s!", path));
throw new IllegalStateException(String.format("Could not obtain metadata for parent node of %s", path));
}
return parent.getType();

View File

@@ -47,6 +47,7 @@ import com.querydsl.core.types.Predicate;
* @author Christoph Strobl
* @author Oliver Gierke
* @author Mark Paluch
* @author Johannes Englmeier
* @since 1.11
*/
public class QuerydslPredicateBuilder {
@@ -224,7 +225,7 @@ public class QuerydslPredicateBuilder {
.nested(new Property(owningType, descriptor.getReadMethod(), descriptor.getWriteMethod(), leafProperty), 0);
if (result == null) {
throw new IllegalStateException(String.format("Could not obtain TypeDescriptor for PathInformation %s!", path));
throw new IllegalStateException(String.format("Could not obtain TypeDescriptor for PathInformation %s", path));
}
return result;