34
34
* @author Mark Paluch
35
35
* @author Jens Schauder
36
36
* @author Christoph Strobl
37
+ * @author Johannes Englmeier
37
38
*/
38
39
public interface PersistentProperty <P extends PersistentProperty <P >> {
39
40
@@ -89,7 +90,7 @@ default Method getRequiredGetter() {
89
90
Method getter = getGetter ();
90
91
91
92
if (getter == null ) {
92
- throw new IllegalArgumentException (String .format ("No getter available for persistent property %s! " , this ));
93
+ throw new IllegalArgumentException (String .format ("No getter available for persistent property %s" , this ));
93
94
}
94
95
95
96
return getter ;
@@ -109,7 +110,7 @@ default Method getRequiredSetter() {
109
110
Method setter = getSetter ();
110
111
111
112
if (setter == null ) {
112
- throw new IllegalArgumentException (String .format ("No setter available for persistent property %s! " , this ));
113
+ throw new IllegalArgumentException (String .format ("No setter available for persistent property %s" , this ));
113
114
}
114
115
115
116
return setter ;
@@ -147,7 +148,7 @@ default Method getRequiredWither() {
147
148
Method wither = getWither ();
148
149
149
150
if (wither == null ) {
150
- throw new IllegalArgumentException (String .format ("No wither available for persistent property %s! " , this ));
151
+ throw new IllegalArgumentException (String .format ("No wither available for persistent property %s" , this ));
151
152
}
152
153
153
154
return wither ;
@@ -161,7 +162,7 @@ default Field getRequiredField() {
161
162
Field field = getField ();
162
163
163
164
if (field == null ) {
164
- throw new IllegalArgumentException (String .format ("No field backing persistent property %s! " , this ));
165
+ throw new IllegalArgumentException (String .format ("No field backing persistent property %s" , this ));
165
166
}
166
167
167
168
return field ;
@@ -193,7 +194,7 @@ default Association<P> getRequiredAssociation() {
193
194
return association ;
194
195
}
195
196
196
- throw new IllegalStateException ("No association found! " );
197
+ throw new IllegalStateException ("No association found" );
197
198
}
198
199
199
200
/**
0 commit comments