diff --git a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkBacktrack.java b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkBacktrack.java index 9ec29cf1..79f4c17e 100644 --- a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkBacktrack.java +++ b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkBacktrack.java @@ -1,5 +1,9 @@ -// Copyright 2019 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j.benchmark; import org.openjdk.jmh.annotations.Benchmark; diff --git a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkCompile.java b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkCompile.java index c9555f0c..a974a49a 100644 --- a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkCompile.java +++ b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkCompile.java @@ -1,5 +1,9 @@ -// Copyright 2019 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j.benchmark; import org.openjdk.jmh.annotations.Benchmark; diff --git a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkFullMatch.java b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkFullMatch.java index 6e90971c..dc3fc724 100644 --- a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkFullMatch.java +++ b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkFullMatch.java @@ -1,5 +1,9 @@ -// Copyright 2019 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j.benchmark; import org.openjdk.jmh.annotations.Benchmark; diff --git a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkSubMatch.java b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkSubMatch.java index eebd676d..c1fcd23d 100644 --- a/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkSubMatch.java +++ b/benchmarks/src/main/java/com/google/re2j/benchmark/BenchmarkSubMatch.java @@ -1,5 +1,9 @@ -// Copyright 2019 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j.benchmark; import org.openjdk.jmh.annotations.Benchmark; diff --git a/benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java b/benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java index 759c2d95..72f03a8e 100644 --- a/benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java +++ b/benchmarks/src/main/java/com/google/re2j/benchmark/Implementations.java @@ -1,5 +1,9 @@ -// Copyright 2019 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j.benchmark; public enum Implementations { diff --git a/build.gradle b/build.gradle index 70c9acac..5208006b 100644 --- a/build.gradle +++ b/build.gradle @@ -194,7 +194,6 @@ allprojects { header rootProject.file('LICENSE.header') ext.year = Calendar.getInstance().get(Calendar.YEAR) strictCheck true - ignoreFailures true mapping { // Without this, the plugin adds javadoc-style comments to the top diff --git a/java/com/google/re2j/CharClass.java b/java/com/google/re2j/CharClass.java index 79c165a1..cdd6ad6f 100644 --- a/java/com/google/re2j/CharClass.java +++ b/java/com/google/re2j/CharClass.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/parse.go diff --git a/java/com/google/re2j/CharGroup.java b/java/com/google/re2j/CharGroup.java index 65299a2f..ed08a47c 100644 --- a/java/com/google/re2j/CharGroup.java +++ b/java/com/google/re2j/CharGroup.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // GENERATED BY make_perl_groups.pl; DO NOT EDIT. // make_perl_groups.pl >perl_groups.go diff --git a/java/com/google/re2j/Characters.java b/java/com/google/re2j/Characters.java index a90a233e..942afe0b 100644 --- a/java/com/google/re2j/Characters.java +++ b/java/com/google/re2j/Characters.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; /** Wraps Character methods to be overridden for GWT. */ diff --git a/java/com/google/re2j/Compiler.java b/java/com/google/re2j/Compiler.java index 5b0ecea6..2fc4b82e 100644 --- a/java/com/google/re2j/Compiler.java +++ b/java/com/google/re2j/Compiler.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/compile.go diff --git a/java/com/google/re2j/Inst.java b/java/com/google/re2j/Inst.java index 517d8bfc..d1fb212c 100644 --- a/java/com/google/re2j/Inst.java +++ b/java/com/google/re2j/Inst.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/prog.go diff --git a/java/com/google/re2j/Machine.java b/java/com/google/re2j/Machine.java index a573a965..1ca1ad8d 100644 --- a/java/com/google/re2j/Machine.java +++ b/java/com/google/re2j/Machine.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/exec.go diff --git a/java/com/google/re2j/MachineInput.java b/java/com/google/re2j/MachineInput.java index 6673291f..f69ba043 100644 --- a/java/com/google/re2j/MachineInput.java +++ b/java/com/google/re2j/MachineInput.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/regexp.go diff --git a/java/com/google/re2j/Matcher.java b/java/com/google/re2j/Matcher.java index 9efcad5f..d0a2ad00 100644 --- a/java/com/google/re2j/Matcher.java +++ b/java/com/google/re2j/Matcher.java @@ -1,5 +1,9 @@ -// Copyright 2010 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import java.util.Map; diff --git a/java/com/google/re2j/Parser.java b/java/com/google/re2j/Parser.java index b2af5756..ad3b1656 100644 --- a/java/com/google/re2j/Parser.java +++ b/java/com/google/re2j/Parser.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/parse.go diff --git a/java/com/google/re2j/Pattern.java b/java/com/google/re2j/Pattern.java index c7d88dab..925760fb 100644 --- a/java/com/google/re2j/Pattern.java +++ b/java/com/google/re2j/Pattern.java @@ -1,5 +1,9 @@ -// Copyright 2010 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import java.io.Serializable; diff --git a/java/com/google/re2j/PatternSyntaxException.java b/java/com/google/re2j/PatternSyntaxException.java index 4fa097fe..17101df3 100644 --- a/java/com/google/re2j/PatternSyntaxException.java +++ b/java/com/google/re2j/PatternSyntaxException.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; /** diff --git a/java/com/google/re2j/Prog.java b/java/com/google/re2j/Prog.java index bce8fa97..3df44f96 100644 --- a/java/com/google/re2j/Prog.java +++ b/java/com/google/re2j/Prog.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/prog.go diff --git a/java/com/google/re2j/RE2.java b/java/com/google/re2j/RE2.java index 2376bc9b..a74134e2 100644 --- a/java/com/google/re2j/RE2.java +++ b/java/com/google/re2j/RE2.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/regexp.go diff --git a/java/com/google/re2j/RE2J.gwt.xml b/java/com/google/re2j/RE2J.gwt.xml index f8fadf41..aed90a12 100644 --- a/java/com/google/re2j/RE2J.gwt.xml +++ b/java/com/google/re2j/RE2J.gwt.xml @@ -1,3 +1,11 @@ + diff --git a/java/com/google/re2j/Regexp.java b/java/com/google/re2j/Regexp.java index a4f36947..b2aa3b09 100644 --- a/java/com/google/re2j/Regexp.java +++ b/java/com/google/re2j/Regexp.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/regexp.go diff --git a/java/com/google/re2j/Simplify.java b/java/com/google/re2j/Simplify.java index ceb39914..dc5a7765 100644 --- a/java/com/google/re2j/Simplify.java +++ b/java/com/google/re2j/Simplify.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/simplify.go diff --git a/java/com/google/re2j/Unicode.java b/java/com/google/re2j/Unicode.java index ca2f9144..e07ec26f 100644 --- a/java/com/google/re2j/Unicode.java +++ b/java/com/google/re2j/Unicode.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Many of these were derived from the corresponding Go functions in // http://code.google.com/p/go/source/browse/src/pkg/unicode/letter.go diff --git a/java/com/google/re2j/UnicodeTables.java b/java/com/google/re2j/UnicodeTables.java index 5ee46caf..8bd827fb 100644 --- a/java/com/google/re2j/UnicodeTables.java +++ b/java/com/google/re2j/UnicodeTables.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Generated at 2020-06-09T16:20:06.352Z by Java 1.8.0_181 using Unicode version 6.0.0.0. // Do not change this file, your edits will be lost. Instead change UnicodeTablesGenerator.java. package com.google.re2j; diff --git a/java/com/google/re2j/Utils.java b/java/com/google/re2j/Utils.java index 68799412..8cdd0343 100644 --- a/java/com/google/re2j/Utils.java +++ b/java/com/google/re2j/Utils.java @@ -1,7 +1,9 @@ -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; /** diff --git a/java/com/google/re2j/make_perl_groups.pl b/java/com/google/re2j/make_perl_groups.pl index 699bfd9d..0a1af51d 100755 --- a/java/com/google/re2j/make_perl_groups.pl +++ b/java/com/google/re2j/make_perl_groups.pl @@ -1,7 +1,10 @@ #!/usr/bin/perl -# Copyright 2008 The Go Authors. All rights reserved. +# +# Copyright (c) 2020 The Go Authors. All rights reserved. +# # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. +# # Modified version of make_perl_groups.pl from RE2/Go: # code.google.com/p/go/source/browse/src/pkg/regexp/syntax/make_perl_groups.pl diff --git a/java/com/google/re2j/super/com/google/re2j/Characters.java b/java/com/google/re2j/super/com/google/re2j/Characters.java index c03efb3c..76c65a3c 100644 --- a/java/com/google/re2j/super/com/google/re2j/Characters.java +++ b/java/com/google/re2j/super/com/google/re2j/Characters.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; /** GWT supersource for {@link Character#toLowerCase}. */ diff --git a/javatests/com/google/re2j/ApiTestUtils.java b/javatests/com/google/re2j/ApiTestUtils.java index 8837dbe9..a3d76d4d 100644 --- a/javatests/com/google/re2j/ApiTestUtils.java +++ b/javatests/com/google/re2j/ApiTestUtils.java @@ -1,5 +1,9 @@ -// Copyright 2012 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import com.google.common.truth.Truth; diff --git a/javatests/com/google/re2j/CharClassTest.java b/javatests/com/google/re2j/CharClassTest.java index 05f540b5..40f2c9c7 100644 --- a/javatests/com/google/re2j/CharClassTest.java +++ b/javatests/com/google/re2j/CharClassTest.java @@ -1,8 +1,9 @@ -// Copyright 2011 Google Inc. All Rights Reserved. -// -// Partly plundered from third_party/re2/testing/charclass_test.cc, -// updated to account for proper Unicode case folding. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static com.google.re2j.Utils.stringToRunes; diff --git a/javatests/com/google/re2j/ExecTest.java b/javatests/com/google/re2j/ExecTest.java index 3ead43c2..775d6e44 100644 --- a/javatests/com/google/re2j/ExecTest.java +++ b/javatests/com/google/re2j/ExecTest.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/exec_test.go diff --git a/javatests/com/google/re2j/FindTest.java b/javatests/com/google/re2j/FindTest.java index aff777a7..58b83d3e 100644 --- a/javatests/com/google/re2j/FindTest.java +++ b/javatests/com/google/re2j/FindTest.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/find_test.go // diff --git a/javatests/com/google/re2j/GWTTest.java b/javatests/com/google/re2j/GWTTest.java index ce1474d7..c584bede 100644 --- a/javatests/com/google/re2j/GWTTest.java +++ b/javatests/com/google/re2j/GWTTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import com.google.common.base.Joiner; diff --git a/javatests/com/google/re2j/GoTestUtils.java b/javatests/com/google/re2j/GoTestUtils.java index 6ce456bf..e4b789aa 100644 --- a/javatests/com/google/re2j/GoTestUtils.java +++ b/javatests/com/google/re2j/GoTestUtils.java @@ -1,5 +1,9 @@ -// Copyright 2012 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import java.io.UnsupportedEncodingException; diff --git a/javatests/com/google/re2j/MatcherTest.java b/javatests/com/google/re2j/MatcherTest.java index e6c7e3f0..e2aa0a11 100644 --- a/javatests/com/google/re2j/MatcherTest.java +++ b/javatests/com/google/re2j/MatcherTest.java @@ -1,5 +1,9 @@ -// Copyright 2012 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.assertEquals; diff --git a/javatests/com/google/re2j/ParserTest.java b/javatests/com/google/re2j/ParserTest.java index a4a12118..82d4813b 100644 --- a/javatests/com/google/re2j/ParserTest.java +++ b/javatests/com/google/re2j/ParserTest.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/parse_test.go diff --git a/javatests/com/google/re2j/PatternTest.java b/javatests/com/google/re2j/PatternTest.java index 44d42445..643a8545 100644 --- a/javatests/com/google/re2j/PatternTest.java +++ b/javatests/com/google/re2j/PatternTest.java @@ -1,5 +1,9 @@ -// Copyright 2012 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static com.google.common.truth.Truth.assertThat; diff --git a/javatests/com/google/re2j/ProgTest.java b/javatests/com/google/re2j/ProgTest.java index 96aecb36..da70615f 100644 --- a/javatests/com/google/re2j/ProgTest.java +++ b/javatests/com/google/re2j/ProgTest.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/prog_test.go diff --git a/javatests/com/google/re2j/RE2CompileTest.java b/javatests/com/google/re2j/RE2CompileTest.java index fb31f982..c9e5f391 100644 --- a/javatests/com/google/re2j/RE2CompileTest.java +++ b/javatests/com/google/re2j/RE2CompileTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.fail; diff --git a/javatests/com/google/re2j/RE2MatchTest.java b/javatests/com/google/re2j/RE2MatchTest.java index e7446bb2..456f0b00 100644 --- a/javatests/com/google/re2j/RE2MatchTest.java +++ b/javatests/com/google/re2j/RE2MatchTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.fail; diff --git a/javatests/com/google/re2j/RE2QuoteMetaTest.java b/javatests/com/google/re2j/RE2QuoteMetaTest.java index d4abe53d..101e1c90 100644 --- a/javatests/com/google/re2j/RE2QuoteMetaTest.java +++ b/javatests/com/google/re2j/RE2QuoteMetaTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.fail; diff --git a/javatests/com/google/re2j/RE2ReplaceAllFunctionTest.java b/javatests/com/google/re2j/RE2ReplaceAllFunctionTest.java index f587dc5c..a283770e 100644 --- a/javatests/com/google/re2j/RE2ReplaceAllFunctionTest.java +++ b/javatests/com/google/re2j/RE2ReplaceAllFunctionTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.fail; diff --git a/javatests/com/google/re2j/RE2ReplaceTest.java b/javatests/com/google/re2j/RE2ReplaceTest.java index e34a0ba1..9df6aa3c 100644 --- a/javatests/com/google/re2j/RE2ReplaceTest.java +++ b/javatests/com/google/re2j/RE2ReplaceTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.fail; diff --git a/javatests/com/google/re2j/RE2Test.java b/javatests/com/google/re2j/RE2Test.java index b344ee58..626f945b 100644 --- a/javatests/com/google/re2j/RE2Test.java +++ b/javatests/com/google/re2j/RE2Test.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/all_test.go diff --git a/javatests/com/google/re2j/RE2TestNumSubexps.java b/javatests/com/google/re2j/RE2TestNumSubexps.java index a2b8a07c..433f2b5d 100644 --- a/javatests/com/google/re2j/RE2TestNumSubexps.java +++ b/javatests/com/google/re2j/RE2TestNumSubexps.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.assertEquals; diff --git a/javatests/com/google/re2j/RegexpHashcodeEqualsTest.java b/javatests/com/google/re2j/RegexpHashcodeEqualsTest.java index 41236ab5..bb0a665e 100644 --- a/javatests/com/google/re2j/RegexpHashcodeEqualsTest.java +++ b/javatests/com/google/re2j/RegexpHashcodeEqualsTest.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import com.google.common.truth.Truth; diff --git a/javatests/com/google/re2j/SimplifyTest.java b/javatests/com/google/re2j/SimplifyTest.java index 7f19217a..bd5b5e64 100644 --- a/javatests/com/google/re2j/SimplifyTest.java +++ b/javatests/com/google/re2j/SimplifyTest.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://code.google.com/p/go/source/browse/src/pkg/regexp/syntax/simplify_test.go diff --git a/javatests/com/google/re2j/Strconv.java b/javatests/com/google/re2j/Strconv.java index aaabb808..8a1c6188 100644 --- a/javatests/com/google/re2j/Strconv.java +++ b/javatests/com/google/re2j/Strconv.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Original Go source here: // http://golang.org/src/pkg/strconv/quote.go diff --git a/javatests/com/google/re2j/StrconvTest.java b/javatests/com/google/re2j/StrconvTest.java index 7be1f7ca..6596f829 100644 --- a/javatests/com/google/re2j/StrconvTest.java +++ b/javatests/com/google/re2j/StrconvTest.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ // Derived from http://golang.org/src/pkg/strconv/quote_test.go. package com.google.re2j; diff --git a/javatests/com/google/re2j/UNIXBufferedReader.java b/javatests/com/google/re2j/UNIXBufferedReader.java index a2f32530..0be737f4 100644 --- a/javatests/com/google/re2j/UNIXBufferedReader.java +++ b/javatests/com/google/re2j/UNIXBufferedReader.java @@ -1,5 +1,9 @@ -// Copyright 2012 Google Inc. All Rights Reserved. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import java.io.IOException; diff --git a/javatests/com/google/re2j/UnicodeTest.java b/javatests/com/google/re2j/UnicodeTest.java index 70c88f1f..85d8c2fa 100644 --- a/javatests/com/google/re2j/UnicodeTest.java +++ b/javatests/com/google/re2j/UnicodeTest.java @@ -1,7 +1,9 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import static org.junit.Assert.fail; diff --git a/testdata/com/google/re2j/FakeGWTEntryPoint.java b/testdata/com/google/re2j/FakeGWTEntryPoint.java index 84c1cb2e..80009ad9 100644 --- a/testdata/com/google/re2j/FakeGWTEntryPoint.java +++ b/testdata/com/google/re2j/FakeGWTEntryPoint.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import com.google.gwt.core.client.EntryPoint; diff --git a/testdata/com/google/re2j/RE2J-Fake.gwt.xml b/testdata/com/google/re2j/RE2J-Fake.gwt.xml index e93ce932..ff70ca61 100644 --- a/testdata/com/google/re2j/RE2J-Fake.gwt.xml +++ b/testdata/com/google/re2j/RE2J-Fake.gwt.xml @@ -1,3 +1,11 @@ + diff --git a/unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java b/unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java index e3be9506..324dc219 100644 --- a/unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java +++ b/unicode/src/main/java/com/google/re2j/UnicodeTablesGenerator.java @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2020 The Go Authors. All rights reserved. + * + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ package com.google.re2j; import com.google.common.collect.Sets;