mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
commit
796e2e8aef
6 changed files with 11 additions and 11 deletions
|
@ -30,7 +30,7 @@ public class Exceptions {
|
|||
/**
|
||||
* Invoke {@code Throwable#addSuppressed(Throwable)} reflectively if it is available.
|
||||
*
|
||||
* It is not available on JRE < 1.7
|
||||
* It is not available on JRE < 1.7
|
||||
*
|
||||
* @since 2.8
|
||||
*/
|
||||
|
|
|
@ -210,11 +210,11 @@ public class PolymorphicDispatcher<RT> {
|
|||
}
|
||||
|
||||
/**
|
||||
* returns > 0 when o1 is more specific than o2,
|
||||
* returns > 0 when o1 is more specific than o2,
|
||||
*
|
||||
* returns == 0 when o1 and o2 are equal or unrelated,
|
||||
*
|
||||
* returns < 0 when o2 is more specific than o1,
|
||||
* returns < 0 when o2 is more specific than o1,
|
||||
*/
|
||||
protected int compare(MethodDesc o1, MethodDesc o2) {
|
||||
final Class<?>[] paramTypes1 = o1.getParameterTypes();
|
||||
|
|
|
@ -22,7 +22,7 @@ import com.google.common.base.Function;
|
|||
* Attention: The algorithm may not depend on itself in a circular manner. E.g. the following will lead
|
||||
* to a stack overflow:
|
||||
* <pre>
|
||||
* SimpleCache<K, V> cache = new SimpleCache<K, V>(new Function<K, V>() {
|
||||
* SimpleCache<K, V> cache = new SimpleCache<K, V>(new Function<K, V>() {
|
||||
* public V apply(K k) {
|
||||
* // DON'T DO THIS
|
||||
* if (k == k1) {
|
||||
|
|
|
@ -456,10 +456,10 @@ public abstract class AbstractTraceRegion {
|
|||
* <code>r1</code> and <code>r2</code> are considered to be equal if
|
||||
*
|
||||
* <pre>
|
||||
* (r1.getMyOffset() == r2.getMyOffset()) && (r1.getMyLength() == r2.getMyLength())
|
||||
* && (r1.getAssociatedOffset() == r2.getAssociatedOffset())
|
||||
* && (r1.getAssociatedLength() == r2.getAssociatedLength())
|
||||
* && (r1.getParent() == null ? r2.getParent() == null : r1.getParent().equals(r2.getParent()))
|
||||
* (r1.getMyOffset() == r2.getMyOffset()) && (r1.getMyLength() == r2.getMyLength())
|
||||
* && (r1.getAssociatedOffset() == r2.getAssociatedOffset())
|
||||
* && (r1.getAssociatedLength() == r2.getAssociatedLength())
|
||||
* && (r1.getParent() == null ? r2.getParent() == null : r1.getParent().equals(r2.getParent()))
|
||||
* </pre>
|
||||
*
|
||||
* This ensures that the {@link #equals(Object)} method works properly across different implementations of the
|
||||
|
|
|
@ -56,8 +56,8 @@ public class NodeModelUtils extends InternalNodeModelUtils {
|
|||
*
|
||||
* A node matches the <code>leafNodeOffset</code> if it fulfills the following condition:
|
||||
* <pre>
|
||||
* node.totalOffset <= leafNodeOffset &&
|
||||
* node.totalEndOffset > leafNodeOffset
|
||||
* node.totalOffset <= leafNodeOffset &&
|
||||
* node.totalEndOffset > leafNodeOffset
|
||||
* </pre>
|
||||
*
|
||||
* @param node the container node. May not be <code>null</code>.
|
||||
|
|
|
@ -32,7 +32,7 @@ public interface ITransientValueService {
|
|||
* Decides whether a value should be serialized.
|
||||
*
|
||||
* If !feature.isMany() or !isMixedList(feature), this method is only called once for each feature. In this case,
|
||||
* index is < 0.
|
||||
* index is < 0.
|
||||
*
|
||||
* If feature.isMany() and isMixedList(feature), this method is called for each of the feature's values.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue