--- old/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Infer.java 2019-12-20 15:41:01.000000000 +0000 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Infer.java 2019-12-20 15:41:01.000000000 +0000 @@ -28,7 +28,6 @@ import com.sun.tools.javac.code.Source.Feature; import com.sun.tools.javac.code.Type.UndetVar.UndetVarListener; import com.sun.tools.javac.code.Types.TypeMapping; -import com.sun.tools.javac.comp.Attr.CheckMode; import com.sun.tools.javac.resources.CompilerProperties.Fragments; import com.sun.tools.javac.resources.CompilerProperties.Notes; import com.sun.tools.javac.tree.JCTree; @@ -279,7 +278,7 @@ } /** - * A partially infered method/constructor type; such a type can be checked multiple times + * A partially inferred method/constructor type; such a type can be checked multiple times * against different targets. */ public class PartiallyInferredMethodType extends MethodType { @@ -306,7 +305,7 @@ /** * Checks this type against a target; this means generating return type constraints, solve - * and then roll back the results (to avoid poolluting the context). + * and then roll back the results (to avoid polluting the context). */ Type check(Attr.ResultInfo resultInfo) { Warner noWarnings = new Warner(null); @@ -1621,10 +1620,10 @@ /** stuck dependency */ STUCK("dashed"); - final String dotSyle; + final String dotStyle; - private DependencyKind(String dotSyle) { - this.dotSyle = dotSyle; + private DependencyKind(String dotStyle) { + this.dotStyle = dotStyle; } } @@ -1829,7 +1828,7 @@ @Override public Properties dependencyAttributes(Node sink, GraphUtils.DependencyKind dk) { Properties p = new Properties(); - p.put("style", ((DependencyKind)dk).dotSyle); + p.put("style", ((DependencyKind)dk).dotStyle); StringBuilder buf = new StringBuilder(); String sep = ""; for (Type from : data) {