Example usage for java.lang InternalError InternalError

List of usage examples for java.lang InternalError InternalError

Introduction

In this page you can find the example usage for java.lang InternalError InternalError.

Prototype

public InternalError() 

Source Link

Document

Constructs an InternalError with no detail message.

Usage

From source file:ConcurrentHashSet.java

/**
 * //w  w  w  .j  a  v  a2s .  c  o m
 * @see java.lang.Object#clone()
 */
@SuppressWarnings("unchecked")
@Override
public Object clone() {
    try {
        ConcurrentHashSet<E> newSet = (ConcurrentHashSet<E>) super.clone();
        newSet.map.putAll(map);
        return newSet;
    } catch (CloneNotSupportedException e) {
        throw new InternalError();
    }
}

From source file:com.echopf.members.ECHOMemberQuery.java

/**
 * {@.en Logs-out in a background thread.}
 * {@.ja ????????????}//from  w  w  w .j a v a  2  s.  c o m
 * 
 * @param instanceId
 *       {@.en the reference ID of the instance to which the logged-in member belong.}
 *       {@.ja ????ID}
 * @param callback invoked after the logging-out is completed
 */
public static void logoutInBackground(String instanceId, ResultCallback callback) {
    try {
        doLogout(false, callback, instanceId);
    } catch (ECHOException e) {
        throw new InternalError();
    }
}

From source file:CopyOnWriteMap.java

@Override
public Object clone() {
    try {//from  w w w  .  java2  s .  c om
        return super.clone();
    } catch (CloneNotSupportedException e) {
        throw new InternalError();
    }
}

From source file:IntArrayList.java

/**
 * Returns a copy of this <tt>IntArrayList</tt> instance.
 *
 * @return  A clone of this <tt>ArrayList</tt> instance.
 *//*ww w . java 2s  .c o  m*/

public Object clone() {
    try {
        IntArrayList l = (IntArrayList) super.clone();
        l.elements = new int[size];
        System.arraycopy(elements, 0, l.elements, 0, size);
        return l;
    } catch (CloneNotSupportedException e) {
        /* Should never happen since we are Cloneable. */
        throw new InternalError();
    }
}

From source file:ArraySet.java

/**
 * Returns a shallow copy of this <tt>HashSet</tt> instance: the elements
 * themselves are not cloned./*from w  w  w  .j  ava2s.  c o  m*/
 * 
 * @return a shallow copy of this set.
 */
@SuppressWarnings("unchecked")
@Override
public Object clone() {
    try {
        ArraySet<E> newSet = (ArraySet<E>) super.clone();
        newSet.map = (ArrayMap<E, Object>) map.clone();
        return newSet;
    } catch (CloneNotSupportedException e) {
        throw new InternalError();
    }
}

From source file:objenome.solver.evolve.Population.java

@Override
public Population clone() {
    try {// w w w  .ja  v  a2  s  . c o  m
        Population clone = (Population) super.clone();

        clone.individuals = new ArrayList<>(individuals);

        return clone;
    } catch (CloneNotSupportedException e) {
        // This shouldn't happen, since we are Cloneable.
        throw new InternalError();
    }
}

From source file:org.fornax.cartridges.sculptor.framework.domain.AbstractDomainObject.java

@Override
public Object clone() {
    try {/*from w w  w  . j  a  va 2  s.  co  m*/
        return super.clone();
    } catch (CloneNotSupportedException e) {
        // this shouldn't happen, since we are Cloneable
        throw new InternalError();
    }
}

From source file:com.projity.pm.snapshot.SnapshottableImpl.java

public Object clone() { //Handle wbs outside
    try {//  w  ww . j a v  a  2s . com
        return super.clone();
    } catch (CloneNotSupportedException e) {
        throw new InternalError();
    }
}

From source file:net.gtaun.shoebill.data.SpawnInfo.java

@Override
public SpawnInfo clone() {
    try {/* www .  jav a 2s  .  com*/
        return (SpawnInfo) super.clone();
    } catch (CloneNotSupportedException e) {
        throw new InternalError();
    }
}

From source file:HashCode.java

/**
 * Return a cloned copy of this <tt>HashCode</tt>.
 * //from   w  w  w.j av  a 2s . c o m
 * @return Cloned <tt>HashCode</tt>.
 */
public Object clone() {
    try {
        return super.clone();
    } catch (CloneNotSupportedException e) {
        throw new InternalError();
    }
}