# HG changeset patch # User igerasim # Date 1440487553 -10800 # Tue Aug 25 10:25:53 2015 +0300 # Node ID 5510c2c3a4ae8d5054c2f486fe6bacbfe36f192a # Parent 0959288f3cc98e0ea18487871e16c69dd12b0634 [mq]: 8134356-gt-lt-in-code diff --git a/src/java.base/share/classes/java/lang/Character.java b/src/java.base/share/classes/java/lang/Character.java --- a/src/java.base/share/classes/java/lang/Character.java +++ b/src/java.base/share/classes/java/lang/Character.java @@ -9356,7 +9356,7 @@ *
diff --git a/src/java.base/share/classes/java/lang/invoke/SwitchPoint.java b/src/java.base/share/classes/java/lang/invoke/SwitchPoint.java --- a/src/java.base/share/classes/java/lang/invoke/SwitchPoint.java +++ b/src/java.base/share/classes/java/lang/invoke/SwitchPoint.java @@ -83,29 +83,29 @@ * A switch point behaves as if implemented on top of {@link MutableCallSite}, * approximately as follows: *
* @author Remi Forax, JSR 292 EG */ diff --git a/src/java.base/share/classes/java/time/chrono/ChronoLocalDate.java b/src/java.base/share/classes/java/time/chrono/ChronoLocalDate.java --- a/src/java.base/share/classes/java/time/chrono/ChronoLocalDate.java +++ b/src/java.base/share/classes/java/time/chrono/ChronoLocalDate.java @@ -715,7 +715,7 @@ * only compares the underlying date and not the chronology. * This allows dates in different calendar systems to be compared based * on the time-line position. - * This is equivalent to using {@code date1.toEpochDay() > date2.toEpochDay()}. + * This is equivalent to using {@code date1.toEpochDay() > date2.toEpochDay()}. *{@code -public class SwitchPoint { - private static final MethodHandle - K_true = MethodHandles.constant(boolean.class, true), - K_false = MethodHandles.constant(boolean.class, false); - private final MutableCallSite mcs; - private final MethodHandle mcsInvoker; - public SwitchPoint() { - this.mcs = new MutableCallSite(K_true); - this.mcsInvoker = mcs.dynamicInvoker(); - } - public MethodHandle guardWithTest( - MethodHandle target, MethodHandle fallback) { - // Note: mcsInvoker is of type ()boolean. - // Target and fallback may take any arguments, but must have the same type. - return MethodHandles.guardWithTest(this.mcsInvoker, target, fallback); - } - public static void invalidateAll(SwitchPoint[] spts) { - List<MutableCallSite> mcss = new ArrayList<>(); - for (SwitchPoint spt : spts) mcss.add(spt.mcs); - for (MutableCallSite mcs : mcss) mcs.setTarget(K_false); - MutableCallSite.syncAll(mcss.toArray(new MutableCallSite[0])); - } -} + * public class SwitchPoint { + * private static final MethodHandle + * K_true = MethodHandles.constant(boolean.class, true), + * K_false = MethodHandles.constant(boolean.class, false); + * private final MutableCallSite mcs; + * private final MethodHandle mcsInvoker; + * public SwitchPoint() { + * this.mcs = new MutableCallSite(K_true); + * this.mcsInvoker = mcs.dynamicInvoker(); + * } + * public MethodHandle guardWithTest( + * MethodHandle target, MethodHandle fallback) { + * // Note: mcsInvoker is of type ()boolean. + * // Target and fallback may take any arguments, but must have the same type. + * return MethodHandles.guardWithTest(this.mcsInvoker, target, fallback); + * } + * public static void invalidateAll(SwitchPoint[] spts) { + * Listmcss = new ArrayList<>(); + * for (SwitchPoint spt : spts) mcss.add(spt.mcs); + * for (MutableCallSite mcs : mcss) mcs.setTarget(K_false); + * MutableCallSite.syncAll(mcss.toArray(new MutableCallSite[0])); + * } + * } * }
* This default implementation performs the comparison based on the epoch-day. * @@ -733,7 +733,7 @@ * only compares the underlying date and not the chronology. * This allows dates in different calendar systems to be compared based * on the time-line position. - * This is equivalent to using {@code date1.toEpochDay() < date2.toEpochDay()}. + * This is equivalent to using {@code date1.toEpochDay() < date2.toEpochDay()}. *
* This default implementation performs the comparison based on the epoch-day.
*
diff --git a/src/java.base/share/classes/sun/invoke/util/BytecodeName.java b/src/java.base/share/classes/sun/invoke/util/BytecodeName.java
--- a/src/java.base/share/classes/sun/invoke/util/BytecodeName.java
+++ b/src/java.base/share/classes/sun/invoke/util/BytecodeName.java
@@ -295,7 +295,7 @@
* (The safe name might possibly be mangled to hide further dangerous characters.)
* For example, the qualified class name {@code java/lang/String}
* will be parsed into the array {@code {"java", '/', "lang", '/', "String"}}.
- * The name {@code <init>} will be parsed into { '<', "init", '>'}}
+ * The name {@code