diff --git a/synthtool/languages/java.py b/synthtool/languages/java.py index 0083affa2..092a946da 100644 --- a/synthtool/languages/java.py +++ b/synthtool/languages/java.py @@ -28,7 +28,7 @@ DEFAULT_FORMAT_VERSION = "1.7" GOOD_LICENSE = """ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,7 +45,7 @@ """ PROTOBUF_HEADER = "// Generated by the protocol buffer compiler. DO NOT EDIT!" BAD_LICENSE = """/\\* - \\* Copyright 2018 Google LLC + \\* Copyright \\d{4} Google LLC \\* \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except \\* in compliance with the License. You may obtain a copy of the License at @@ -96,6 +96,7 @@ def fix_proto_headers(proto_root: Path) -> None: PROTOBUF_HEADER, f"{GOOD_LICENSE}{PROTOBUF_HEADER}", ) + # https://github.com/googleapis/gapic-generator/issues/3074 s.replace( [proto_root / "src/**/*Name.java", proto_root / "src/**/*Names.java"], BAD_LICENSE,