Merge branch 'stable-2.13'
* stable-2.13: Upgrade JGit to 4.4.1.201607150455-r.148-gabeaafc Fix the DiffPreference and EditPreference dialogs on diffs and edits OutgoingEmailValidator: Revert back to using static initialization Change-Id: I02f2a38db07752d6074009313722fb969f69501e
This commit is contained in:
		@@ -32,7 +32,8 @@ limitations under the License.
 | 
				
			|||||||
      color: #ffffff;
 | 
					      color: #ffffff;
 | 
				
			||||||
      font-family: arial,sans-serif;
 | 
					      font-family: arial,sans-serif;
 | 
				
			||||||
      font-weight: bold;
 | 
					      font-weight: bold;
 | 
				
			||||||
      overflow: hidden;
 | 
					      overflow: auto !important;
 | 
				
			||||||
 | 
					      bottom: 0;
 | 
				
			||||||
      text-align: left;
 | 
					      text-align: left;
 | 
				
			||||||
      text-shadow: 1px 1px 7px #000000;
 | 
					      text-shadow: 1px 1px 7px #000000;
 | 
				
			||||||
      min-width: 300px;
 | 
					      min-width: 300px;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,7 +32,8 @@ limitations under the License.
 | 
				
			|||||||
      color: #ffffff;
 | 
					      color: #ffffff;
 | 
				
			||||||
      font-family: arial,sans-serif;
 | 
					      font-family: arial,sans-serif;
 | 
				
			||||||
      font-weight: bold;
 | 
					      font-weight: bold;
 | 
				
			||||||
      overflow: hidden;
 | 
					      overflow: auto !important;
 | 
				
			||||||
 | 
					      bottom: 0;
 | 
				
			||||||
      text-align: left;
 | 
					      text-align: left;
 | 
				
			||||||
      text-shadow: 1px 1px 7px #000000;
 | 
					      text-shadow: 1px 1px 7px #000000;
 | 
				
			||||||
      min-width: 300px;
 | 
					      min-width: 300px;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,15 +19,12 @@ import static org.apache.commons.validator.routines.DomainValidator.ArrayType.GE
 | 
				
			|||||||
import org.apache.commons.validator.routines.DomainValidator;
 | 
					import org.apache.commons.validator.routines.DomainValidator;
 | 
				
			||||||
import org.apache.commons.validator.routines.EmailValidator;
 | 
					import org.apache.commons.validator.routines.EmailValidator;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.util.concurrent.atomic.AtomicBoolean;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
public class OutgoingEmailValidator {
 | 
					public class OutgoingEmailValidator {
 | 
				
			||||||
  private static final AtomicBoolean initialized = new AtomicBoolean(false);
 | 
					  static {
 | 
				
			||||||
 | 
					 | 
				
			||||||
  public static boolean isValid(String addr) {
 | 
					 | 
				
			||||||
    if (!initialized.getAndSet(true)) {
 | 
					 | 
				
			||||||
    DomainValidator.updateTLDOverride(GENERIC_PLUS, new String[]{"local"});
 | 
					    DomainValidator.updateTLDOverride(GENERIC_PLUS, new String[]{"local"});
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  public static boolean isValid(String addr) {
 | 
				
			||||||
    return EmailValidator.getInstance(true, true).isValid(addr);
 | 
					    return EmailValidator.getInstance(true, true).isValid(addr);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
include_defs('//lib/maven.defs')
 | 
					include_defs('//lib/maven.defs')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
REPO = GERRIT # Leave here even if set to MAVEN_CENTRAL.
 | 
					REPO = GERRIT # Leave here even if set to MAVEN_CENTRAL.
 | 
				
			||||||
VERS = '4.4.1.201607150455-r.144-gb67df51'
 | 
					VERS = '4.4.1.201607150455-r.148-gabeaafc'
 | 
				
			||||||
DOC_VERS = '4.4.1.201607150455-r' # Set to VERS unless using a snapshot
 | 
					DOC_VERS = '4.4.1.201607150455-r' # Set to VERS unless using a snapshot
 | 
				
			||||||
JGIT_DOC_URL="http://download.eclipse.org/jgit/site/" + DOC_VERS + "/apidocs"
 | 
					JGIT_DOC_URL="http://download.eclipse.org/jgit/site/" + DOC_VERS + "/apidocs"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ include_defs('//lib/JGIT_VERSION')
 | 
				
			|||||||
maven_jar(
 | 
					maven_jar(
 | 
				
			||||||
  name = 'jgit-archive',
 | 
					  name = 'jgit-archive',
 | 
				
			||||||
  id = 'org.eclipse.jgit:org.eclipse.jgit.archive:' + VERS,
 | 
					  id = 'org.eclipse.jgit:org.eclipse.jgit.archive:' + VERS,
 | 
				
			||||||
  sha1 = 'abaee87ff5d85ff0f32de5e56669063b73e5fae0',
 | 
					  sha1 = '73c3dd7d57c54b4ec95db6325e2d51dd3a0e6036',
 | 
				
			||||||
  license = 'jgit',
 | 
					  license = 'jgit',
 | 
				
			||||||
  repository = REPO,
 | 
					  repository = REPO,
 | 
				
			||||||
  deps = ['//lib/jgit/org.eclipse.jgit:jgit'],
 | 
					  deps = ['//lib/jgit/org.eclipse.jgit:jgit'],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ include_defs('//lib/JGIT_VERSION')
 | 
				
			|||||||
maven_jar(
 | 
					maven_jar(
 | 
				
			||||||
  name = 'jgit-servlet',
 | 
					  name = 'jgit-servlet',
 | 
				
			||||||
  id = 'org.eclipse.jgit:org.eclipse.jgit.http.server:' + VERS,
 | 
					  id = 'org.eclipse.jgit:org.eclipse.jgit.http.server:' + VERS,
 | 
				
			||||||
  sha1 = 'a48e93266eb4a7a04a1767d6a16d2f0acf11402a',
 | 
					  sha1 = 'a85e11f0f31f71a4e4e83313c4c24167e99d330c',
 | 
				
			||||||
  license = 'jgit',
 | 
					  license = 'jgit',
 | 
				
			||||||
  repository = REPO,
 | 
					  repository = REPO,
 | 
				
			||||||
  deps = ['//lib/jgit/org.eclipse.jgit:jgit'],
 | 
					  deps = ['//lib/jgit/org.eclipse.jgit:jgit'],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@ include_defs('//lib/JGIT_VERSION')
 | 
				
			|||||||
maven_jar(
 | 
					maven_jar(
 | 
				
			||||||
  name = 'junit',
 | 
					  name = 'junit',
 | 
				
			||||||
  id = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + VERS,
 | 
					  id = 'org.eclipse.jgit:org.eclipse.jgit.junit:' + VERS,
 | 
				
			||||||
  sha1 = 'ccd60b0f344e98af051449c52542a18576cf69ba',
 | 
					  sha1 = 'cd7e83bb138d0c3dad9d2dea27c238824d056a4b',
 | 
				
			||||||
  license = 'DO_NOT_DISTRIBUTE',
 | 
					  license = 'DO_NOT_DISTRIBUTE',
 | 
				
			||||||
  repository = REPO,
 | 
					  repository = REPO,
 | 
				
			||||||
  unsign = True,
 | 
					  unsign = True,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,8 +4,8 @@ include_defs('//lib/JGIT_VERSION')
 | 
				
			|||||||
maven_jar(
 | 
					maven_jar(
 | 
				
			||||||
  name = 'jgit',
 | 
					  name = 'jgit',
 | 
				
			||||||
  id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS,
 | 
					  id = 'org.eclipse.jgit:org.eclipse.jgit:' + VERS,
 | 
				
			||||||
  bin_sha1 = 'b28b6e0d14adfcf0a3afcf4002fe16dc2cc3e453',
 | 
					  bin_sha1 = '0bbcd8846f2731e50fccfb9f3ced43e2298844d4',
 | 
				
			||||||
  src_sha1 = '362c6913beb90a278c5cd479f7536813fe007b60',
 | 
					  src_sha1 = '72d8aa79f8e645bb44f9f2fe74d02c6021516261',
 | 
				
			||||||
  license = 'jgit',
 | 
					  license = 'jgit',
 | 
				
			||||||
  repository = REPO,
 | 
					  repository = REPO,
 | 
				
			||||||
  unsign = True,
 | 
					  unsign = True,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user