List of usage examples for java.lang CloneNotSupportedException getMessage
public String getMessage()
From source file:com.commsen.apropos.core.PropertiesManager.java
/** * Returns a clone of {@link PropertyPackage} called <code>name</code>. If no such * {@link PropertyPackage} exists it will return <code>null</code>. * //from www.j a va 2 s . c o m * @return a {@link PropertyPackage} called <code>name</code> or <code>null</code>. */ public static PropertyPackage getPropertyPackage(String name) { try { PropertyPackage propertyPackage = allPackages.get(name); return propertyPackage == null ? null : (PropertyPackage) propertyPackage.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(e.getMessage()); } }
From source file:com.flexive.shared.security.ACLAssignment.java
/** * Clones the ACLAssignmentData array./* w ww . j a v a2s .c o m*/ * * @param data the array to clone * @return the clone */ public static ACLAssignment[] clone(ACLAssignment data[]) { try { ACLAssignment aadClone[] = new ACLAssignment[data.length]; int pos = 0; for (ACLAssignment item : data) { aadClone[pos++] = item.clone(); } return aadClone; } catch (CloneNotSupportedException exc) { LOG.fatal("Unable to clone ACLAssignmentData[]: " + exc.getMessage(), exc); return null; } }
From source file:MyClass.java
public Object clone() { try {// w w w . j a va 2 s .c om return super.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e.getMessage()); } }
From source file:com.intuit.wasabi.analyticsobjects.statistics.DistinguishableEffectSize.java
@Override public DistinguishableEffectSize clone() { try {/*from ww w . j ava2s . c o m*/ return (DistinguishableEffectSize) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("DistinguishableEffectSize clone not supported: " + e.getMessage(), e); } }
From source file:com.intuit.wasabi.analyticsobjects.counts.Counts.java
@Override public Counts clone() { try {// w ww. jav a 2s .c o m return (Counts) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("Counts clone not supported: " + e.getMessage(), e); } }
From source file:com.intuit.wasabi.analyticsobjects.statistics.Estimate.java
@Override public Estimate clone() { try {//from ww w . ja v a2s .c o m return (Estimate) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("Estimate clone not supported: " + e.getMessage(), e); } }
From source file:com.intuit.wasabi.analyticsobjects.statistics.ExperimentCumulativeStatistics.java
@Override public ExperimentCumulativeStatistics clone() { ExperimentCumulativeStatistics cloned; try {// w w w . j a v a 2 s . c o m cloned = (ExperimentCumulativeStatistics) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("ExperimentCumulativeStatistics clone not supported: " + e.getMessage(), e); } if (days != null) { List<DailyStatistics> clonedDays = new ArrayList<DailyStatistics>(); for (DailyStatistics day : days) { clonedDays.add(day.clone()); } cloned.setDays(clonedDays); } return cloned; }
From source file:com.intuit.wasabi.analyticsobjects.statistics.DailyStatistics.java
@Override public DailyStatistics clone() { DailyStatistics cloned;//from w w w.jav a2s. c o m try { cloned = (DailyStatistics) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("DailyStatistics clone not supported: " + e.getMessage(), e); } if (perDay != null) { cloned.perDay = perDay.clone(); } if (cumulative != null) { cloned.cumulative = cumulative.clone(); } return cloned; }
From source file:com.intuit.wasabi.analyticsobjects.counts.DailyCounts.java
@Override public DailyCounts clone() { DailyCounts cloned;//w ww . ja v a 2 s . c o m try { cloned = (DailyCounts) super.clone(); } catch (CloneNotSupportedException e) { // Should never happen throw new AnalyticsException("DailyCounts clone not supported: " + e.getMessage(), e); } if (perDay != null) { cloned.perDay = perDay.clone(); } if (cumulative != null) { cloned.cumulative = cumulative.clone(); } return cloned; }
From source file:com.mc.printer.model.panel.task.BuildGuideTask.java
public void deepCloneMap(HashMap<String, GuideCompBean> dest, HashMap<String, GuideCompBean> src) { for (String str : src.keySet()) { GuideCompBean newbean;//from www . j a v a 2s. c om try { newbean = src.get(str).clone(); dest.put(str, newbean); } catch (CloneNotSupportedException ex) { logger.error(ex.getMessage()); } } }