@@ -60,10 +60,10 @@ public boolean add(C sequence) {
60
60
public boolean doesSubStringExist (C sequence ) {
61
61
char [] chars = sequence .toString ().toCharArray ();
62
62
int length = chars .length ;
63
- PatriciaTrie .Node < C > current = tree .root ;
63
+ PatriciaTrie .Node current = tree .root ;
64
64
int index = 0 ;
65
65
for (int i = 0 ; i < length ; i ++) {
66
- int innerStringLength = (current .string != null ) ? current .string .length () : 0 ;
66
+ int innerStringLength = (current .string != null ) ? current .string .length : 0 ;
67
67
char c = chars [i ];
68
68
if (innerStringLength > index ) {
69
69
boolean inThis = current .partOfThis (c , index ++);
@@ -96,7 +96,7 @@ public Set<String> getSuffixes() {
96
96
* to get all suffixes at.
97
97
* @return set of suffixes in trie at node.
98
98
*/
99
- private Set <String > getSuffixes (PatriciaTrie .Node < C > node ) {
99
+ private Set <String > getSuffixes (PatriciaTrie .Node node ) {
100
100
StringBuilder builder = new StringBuilder ();
101
101
if (node .string != null )
102
102
builder .append (node .string );
@@ -105,7 +105,7 @@ private Set<String> getSuffixes(PatriciaTrie.Node<C> node) {
105
105
set .add (builder .toString ());
106
106
}
107
107
for (int i = 0 ; i < node .getChildrenSize (); i ++) {
108
- PatriciaTrie .Node < C > c = node .getChild (i );
108
+ PatriciaTrie .Node c = node .getChild (i );
109
109
set .addAll (getSuffixes (c , builder .toString ()));
110
110
}
111
111
return set ;
@@ -120,7 +120,7 @@ private Set<String> getSuffixes(PatriciaTrie.Node<C> node) {
120
120
* to prepend to suffixes.
121
121
* @return set of suffixes in trie at node.
122
122
*/
123
- private Set <String > getSuffixes (PatriciaTrie .Node < C > node , String prefix ) {
123
+ private Set <String > getSuffixes (PatriciaTrie .Node node , String prefix ) {
124
124
StringBuilder builder = new StringBuilder (prefix );
125
125
if (node .string != null )
126
126
builder .append (node .string );
@@ -129,7 +129,7 @@ private Set<String> getSuffixes(PatriciaTrie.Node<C> node, String prefix) {
129
129
set .add (builder .toString ());
130
130
}
131
131
for (int i = 0 ; i < node .getChildrenSize (); i ++) {
132
- PatriciaTrie .Node < C > c = node .getChild (i );
132
+ PatriciaTrie .Node c = node .getChild (i );
133
133
set .addAll (getSuffixes (c , builder .toString ()));
134
134
}
135
135
return set ;
0 commit comments