Skip to content

Commit

Permalink
Suppress some rawtype and unchecked cast warnings.
Browse files Browse the repository at this point in the history
In theory these should be fixed but that would require a non-trival redesign in some cases.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=251932243
  • Loading branch information
nreid260 authored and blickly committed Jun 6, 2019
1 parent d91844a commit 92dd5b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/com/google/javascript/jscomp/graph/Annotatable.java
Expand Up @@ -31,8 +31,8 @@ public interface Annotatable {
/**
* Retrieves a piece of information that has been annotated.
*
* @return The annotation or <code>null</code> if the object has not
* been annotated.
* @return The annotation or <code>null</code> if the object has not been annotated.
*/
@SuppressWarnings("unchecked")
<A extends Annotation> A getAnnotation();
}
Expand Up @@ -38,6 +38,7 @@ public final class CachingTranspiler implements Transpiler {
private final LoadingCache<Key, TranspileResult> cache;
private final Supplier<String> runtime;

@SuppressWarnings("unchecked")
public CachingTranspiler(
final Transpiler delegate, CacheBuilder<Object, ? super TranspileResult> builder) {
checkNotNull(delegate);
Expand Down
2 changes: 1 addition & 1 deletion test/com/google/javascript/jscomp/CompilerTestCase.java
Expand Up @@ -1650,7 +1650,7 @@ private void testInternal(
.that(externsDifference.entriesDiffering())
.isEmpty();

MapDifference sourceDifference =
MapDifference<String, PropertyAccessKind> sourceDifference =
Maps.difference(
compiler.getSourceGetterAndSetterProperties(),
GatherGettersAndSetterProperties.gather(compiler, mainRoot));
Expand Down

0 comments on commit 92dd5b8

Please sign in to comment.