Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,13 @@ public boolean matches(char[] target, Match match) {
*/
public boolean matches(char[] target, int start, int end, Match match) {

synchronized (this) {
if (this.operations == null)
this.prepare();
if (this.context == null)
this.context = new Context();
if (this.operations == null || this.context == null) {
synchronized (this) {
if (this.operations == null)
this.prepare();
if (this.context == null)
this.context = new Context();
}
}
Context con = null;
synchronized (this.context) {
Expand Down Expand Up @@ -889,11 +891,13 @@ public boolean matches(String target, Match match) {
*/
public boolean matches(String target, int start, int end, Match match) {

synchronized (this) {
if (this.operations == null)
this.prepare();
if (this.context == null)
this.context = new Context();
if (this.operations == null || this.context == null) {
synchronized (this) {
if (this.operations == null)
this.prepare();
if (this.context == null)
this.context = new Context();
}
}
Context con = null;
synchronized (this.context) {
Expand Down Expand Up @@ -1569,11 +1573,13 @@ public boolean matches(CharacterIterator target, Match match) {



synchronized (this) {
if (this.operations == null)
this.prepare();
if (this.context == null)
this.context = new Context();
if (this.operations == null || this.context == null) {
synchronized (this) {
if (this.operations == null)
this.prepare();
if (this.context == null)
this.context = new Context();
}
}
Context con = null;
synchronized (this.context) {
Expand Down Expand Up @@ -1738,9 +1744,9 @@ else if (this.firstChar != null) {
boolean hasBackReferences = false;

transient int minlength;
transient Op operations = null;
transient volatile Op operations = null;
transient int numberOfClosures;
transient Context context = null;
transient volatile Context context = null;
transient RangeToken firstChar = null;

transient String fixedString = null;
Expand Down