git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix remote calls with (valid) NULL arguments
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
data
/
Paragraph.java
diff --git
a/src/be/nikiroo/fanfix/data/Paragraph.java
b/src/be/nikiroo/fanfix/data/Paragraph.java
index a731c328ce0a2ef4a0bc373689fe275c2abfb663..7a1a1c448322212cbd09cebdc7180b0f8912b6c4 100644
(file)
--- a/
src/be/nikiroo/fanfix/data/Paragraph.java
+++ b/
src/be/nikiroo/fanfix/data/Paragraph.java
@@
-7,7
+7,7
@@
import java.awt.image.BufferedImage;
*
* @author niki
*/
*
* @author niki
*/
-public class Paragraph {
+public class Paragraph
implements Cloneable
{
/**
* A paragraph type, that will dictate how the paragraph will be handled.
*
/**
* A paragraph type, that will dictate how the paragraph will be handled.
*
@@
-139,4
+139,17
@@
public class Paragraph {
public String toString() {
return String.format("%s: [%s]", "" + type, "" + content);
}
public String toString() {
return String.format("%s: [%s]", "" + type, "" + content);
}
+
+ @Override
+ public Paragraph clone() {
+ Paragraph para = null;
+ try {
+ para = (Paragraph) super.clone();
+ } catch (CloneNotSupportedException e) {
+ // Did the clones rebel?
+ System.err.println(e);
+ }
+
+ return para;
+ }
}
}