File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ predicate isGigaSpacesEventMethod(Method eventMethod) {
37
37
class GigaSpacesSpaceIdGetterMethod extends Method {
38
38
GigaSpacesSpaceIdGetterMethod ( ) {
39
39
getAnAnnotation ( ) .getType ( ) .hasQualifiedName ( "com.gigaspaces.annotation.pojo" , "SpaceId" ) and
40
- getName ( ) .prefix ( 3 ) = "get"
40
+ getName ( ) .matches ( "get%" )
41
41
}
42
42
}
43
43
@@ -48,7 +48,7 @@ class GigaSpacesSpaceIdSetterMethod extends Method {
48
48
GigaSpacesSpaceIdSetterMethod ( ) {
49
49
exists ( GigaSpacesSpaceIdGetterMethod getterMethod |
50
50
getterMethod .getDeclaringType ( ) = getDeclaringType ( ) and
51
- getName ( ) .prefix ( 3 ) = "set"
51
+ getName ( ) .matches ( "set%" )
52
52
|
53
53
getterMethod .getName ( ) .suffix ( 3 ) = getName ( ) .suffix ( 3 )
54
54
)
@@ -62,6 +62,6 @@ class GigaSpacesSpaceIdSetterMethod extends Method {
62
62
class GigaSpacesSpaceRoutingMethod extends Method {
63
63
GigaSpacesSpaceRoutingMethod ( ) {
64
64
getAnAnnotation ( ) .getType ( ) .hasQualifiedName ( "com.gigaspaces.annotation.pojo" , "SpaceRouting" ) and
65
- getName ( ) .prefix ( 3 ) = "get"
65
+ getName ( ) .matches ( "get%" )
66
66
}
67
67
}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class SpringProfileExpr extends string {
37
37
* A Spring profile expression that begins with "!", indicating a negated expression.
38
38
*/
39
39
class NotSpringProfileExpr extends SpringProfileExpr {
40
- NotSpringProfileExpr ( ) { this .prefix ( 1 ) = "!" }
40
+ NotSpringProfileExpr ( ) { this .matches ( "!%" ) }
41
41
42
42
/**
43
43
* Gets the profile described in this profile expression.
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ class Pom extends ProtoPom {
129
129
* occurs by considering the properties defined by this project or an ancestor project.
130
130
*/
131
131
string resolvePlaceholder ( string name ) {
132
- if name .prefix ( 8 ) = "project."
132
+ if name .matches ( "project.%" )
133
133
then
134
134
exists ( PomElement p |
135
135
p = getProjectProperty ( ) and
You can’t perform that action at this time.
0 commit comments