List of usage examples for java.lang InternalError InternalError
public InternalError()
InternalError
with no detail message. From source file:net.sf.eclipsecs.core.config.CheckConfigurationWorkingCopy.java
/** * {@inheritDoc}/*from w w w .j ava 2 s .c o m*/ */ public CheckConfigurationWorkingCopy clone() { CheckConfigurationWorkingCopy clone = null; try { clone = (CheckConfigurationWorkingCopy) super.clone(); clone.mAdditionalData = new HashMap<String, String>(); clone.mAdditionalData.putAll(this.mAdditionalData); clone.mProperties = new ArrayList<ResolvableProperty>(); for (ResolvableProperty prop : mProperties) { clone.mProperties.add(prop.clone()); } } catch (CloneNotSupportedException e) { throw new InternalError(); // this should never happen } return clone; }
From source file:edu.cornell.med.icb.geo.tools.Affy2InsightfulMiner.java
private void appendSignal(final Map<String, Vector<Double>> assemblingBench, final Table sampleTable, final String sampleIdentifier) { final Table.RowIterator ri = sampleTable.firstRow(); try {//from w w w.j a v a2s. com final int signalColumnIndex = sampleTable.getColumnIndex("Signal"); final int probeSetColumnIndex = sampleTable.getColumnIndex("Probe Set Name"); while (!ri.end()) { final String probesetId = (String) sampleTable.getValue(probeSetColumnIndex, ri); Vector<Double> signalValues = assemblingBench.get(probesetId); if (signalValues == null) { signalValues = new Vector<Double>(); } final Double signalValue = sampleTable.getDoubleValue(signalColumnIndex, ri); signalValues.add(signalValue); assemblingBench.put(probesetId, signalValues); ri.next(); } } catch (TypeMismatchException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. throw new InternalError(); } catch (InvalidColumnException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. throw new InternalError(); } }
From source file:org.netflux.core.RecordMetadata.java
/** * Returns a copy of this metadata. A shallow copy of the private instance variables is done, so changes in the cloned metadata * doesn't affect the original instance. * //from w w w. j a v a2 s. co m * @return a clone of this <code>RecordMetadata</code> instance */ @Override public RecordMetadata clone() { try { RecordMetadata clonedRecordMetadata = (RecordMetadata) super.clone(); clonedRecordMetadata.fieldMetadata = (ArrayList<FieldMetadata>) this.fieldMetadata.clone(); clonedRecordMetadata.fieldIndexes = (LinkedHashMap<String, Integer>) this.fieldIndexes.clone(); return clonedRecordMetadata; } catch (CloneNotSupportedException exc) { RecordMetadata.log.fatal(RecordMetadata.messages.getString("error.clone.not.supported"), exc); throw new InternalError(); } }
From source file:IntHashMap.java
/** * Returns a shallow copy of this <code>IntHashMap</code> instance: the keys and * values themselves are not cloned.//from w w w . j av a2 s . co m * * @return a shallow copy of this map. */ @Override public Object clone() { try { IntHashMap t = (IntHashMap) super.clone(); t.table = new Entry[table.length]; for (int i = table.length; i-- > 0;) { t.table[i] = (table[i] != null) ? (Entry) table[i].clone() : null; } t.keySet = null; t.entrySet = null; t.values = null; t.modCount = 0; return t; } catch (CloneNotSupportedException e) { // this shouldn't happen, since we are Cloneable throw new InternalError(); } }
From source file:WeakIdentityMap.java
public Object clone() { try {//from w w w .ja v a 2 s.com WeakIdentityMap t = (WeakIdentityMap) super.clone(); t.table = new Entry[this.table.length]; for (int i = this.table.length; i-- > 0;) { t.table[i] = (this.table[i] != null) ? (Entry) this.table[i].copy(this.queue) : null; } t.keySet = null; t.entrySet = null; t.values = null; t.modCount = 0; return t; } catch (CloneNotSupportedException e) { // this shouldn't happen, since we are Cloneable throw new InternalError(); } }
From source file:com.projity.interval.ValueObjectForIntervalTable.java
public Object clone() { try {/*from ww w. ja va 2 s.c o m*/ ValueObjectForIntervalTable v = (ValueObjectForIntervalTable) super.clone(); v.name = (name == null) ? null : new String(name); ArrayList newList = new ArrayList(); for (Iterator i = valueObjects.iterator(); i.hasNext();) { newList.add(((ValueObjectForInterval) i.next()).clone()); } v.valueObjects = newList; return v; } catch (CloneNotSupportedException e) { throw new InternalError(); } }
From source file:org.apache.jackrabbit.core.state.ChildNodeEntries.java
/** * Returns a shallow copy of this <code>ChildNodeEntries</code> instance; * the entries themselves are not cloned. * * @return a shallow copy of this instance. *//*from w w w . j av a 2 s.c o m*/ protected Object clone() { try { ChildNodeEntries clone = (ChildNodeEntries) super.clone(); if (nameMap != Collections.EMPTY_MAP) { clone.shared = true; shared = true; } return clone; } catch (CloneNotSupportedException e) { // never happens, this class is cloneable throw new InternalError(); } }
From source file:FastMap.java
/** * Returns a shallow copy of this {@link FastMap}. The keys and * the values themselves are not cloned. * * @return a shallow copy of this map.//from w w w. j a va2 s. c o m */ public Object clone() { try { FastMap clone = (FastMap) super.clone(); clone.initialize(_capacity); clone.putAll(this); return clone; } catch (CloneNotSupportedException e) { // Should not happen, since we are Cloneable. throw new InternalError(); } }
From source file:IdentityHashMap.java
/** * Returns a shallow copy of this <tt>IdentityHashMap</tt> instance: the keys and * values themselves are not cloned.//from w w w . j a v a2s .c o m * * @return a shallow copy of this map. */ public Object clone() { try { IdentityHashMap t = (IdentityHashMap) super.clone(); t.table = new Entry[table.length]; for (int i = table.length; i-- > 0;) { t.table[i] = (table[i] != null) ? (Entry) table[i].clone() : null; } t.keySet = null; t.entrySet = null; t.values = null; t.modCount = 0; return t; } catch (CloneNotSupportedException e) { // this shouldn't happen, since we are Cloneable throw new InternalError(); } }
From source file:org.netflux.core.Record.java
/** * Returns a copy of this record. A shallow copy of the private instance variables is done, so changes in the cloned record doesn't * affect the original instance.//from w w w .j a va 2s .c om * * @return a clone of this <code>RecordMetadata</code> instance */ @Override public Record clone() { try { Record clonedRecord = (Record) super.clone(); clonedRecord.metadata = (RecordMetadata) this.metadata.clone(); clonedRecord.data = (List<Field<? extends Serializable>>) ((ArrayList<Field<? extends Serializable>>) this.data) .clone(); return clonedRecord; } catch (CloneNotSupportedException exc) { Record.log.fatal(Record.messages.getString("error.clone.not.supported"), exc); throw new InternalError(); } }