Skip to content

Commit 34d1324

Browse files
committed
Remove unused guice dependency
Guice doesn't seem to be used. Remove it and all it transitive dependencies. Also remove specifications for error prone bug patterns related to dependency injection. Change-Id: I0edfb951e292ed583a16743a5f8ea9b35d76f397
1 parent 1219bcd commit 34d1324

4 files changed

Lines changed: 0 additions & 54 deletions

File tree

WORKSPACE

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -257,32 +257,6 @@ maven_jar(
257257
sha1 = "a41f9cfe6faafb2eb83a1c7dd2d0dfd844e2a936",
258258
)
259259

260-
GUICE_VERSION = "5.0.1"
261-
262-
maven_jar(
263-
name = "guice-library",
264-
artifact = "com.google.inject:guice:" + GUICE_VERSION,
265-
sha1 = "0dae7556b441cada2b4f0a2314eb68e1ff423429",
266-
)
267-
268-
maven_jar(
269-
name = "guice-assistedinject",
270-
artifact = "com.google.inject.extensions:guice-assistedinject:" + GUICE_VERSION,
271-
sha1 = "62e02f2aceb7d90ba354584dacc018c1e94ff01c",
272-
)
273-
274-
maven_jar(
275-
name = "aopalliance",
276-
artifact = "aopalliance:aopalliance:1.0",
277-
sha1 = "0235ba8b489512805ac13a8f9ea77a1ca5ebe3e8",
278-
)
279-
280-
maven_jar(
281-
name = "javax-inject",
282-
artifact = "javax.inject:javax.inject:1",
283-
sha1 = "6975da39a7040257bd51d21a231b76c915872d38",
284-
)
285-
286260
JETTY_VERSION = "9.4.49.v20220914"
287261

288262
maven_jar(

java/com/google/gitiles/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ DEPS = [
2525

2626
DEPS_ALL = DEPS + [
2727
"//lib:jgit-archive",
28-
"//lib/guice:guice",
2928
]
3029

3130
java_library(

lib/guice/BUILD

Lines changed: 0 additions & 25 deletions
This file was deleted.

tools/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ java_package_configuration(
6060
"-Xep:ImmutableAnnotationChecker:ERROR",
6161
"-Xep:ImmutableEnumChecker:WARN",
6262
"-Xep:IncompatibleModifiers:ERROR",
63-
"-Xep:InjectOnConstructorOfAbstractClass:ERROR",
6463
"-Xep:InputStreamSlowMultibyteRead:ERROR",
6564
"-Xep:IterableAndIterator:ERROR",
6665
"-Xep:JUnit3FloatingPointComparisonWithoutDelta:ERROR",
@@ -77,7 +76,6 @@ java_package_configuration(
7776
"-Xep:NullablePrimitive:ERROR",
7877
"-Xep:NullableVoid:ERROR",
7978
"-Xep:OperatorPrecedence:ERROR",
80-
"-Xep:OverridesGuiceInjectableMethod:ERROR",
8179
"-Xep:PreconditionsInvalidPlaceholder:ERROR",
8280
"-Xep:ProtoFieldPreconditionsCheckNotNull:ERROR",
8381
"-Xep:ProtocolBufferOrdinal:ERROR",

0 commit comments

Comments
 (0)