summaryrefslogtreecommitdiff
path: root/java/typeMigration/src/intentionDescriptions/ConvertFieldToThreadLocalIntention/before.java.template
diff options
context:
space:
mode:
Diffstat (limited to 'java/typeMigration/src/intentionDescriptions/ConvertFieldToThreadLocalIntention/before.java.template')
-rw-r--r--java/typeMigration/src/intentionDescriptions/ConvertFieldToThreadLocalIntention/before.java.template10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/typeMigration/src/intentionDescriptions/ConvertFieldToThreadLocalIntention/before.java.template b/java/typeMigration/src/intentionDescriptions/ConvertFieldToThreadLocalIntention/before.java.template
new file mode 100644
index 000000000000..14fae704762b
--- /dev/null
+++ b/java/typeMigration/src/intentionDescriptions/ConvertFieldToThreadLocalIntention/before.java.template
@@ -0,0 +1,10 @@
+import java.text.*;
+import java.util.Date;
+
+public class X {
+ private static DateFormat <spot>dateFormat</spot> = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z");
+
+ public String getDateString() {
+ return dateFormat.format(new Date());
+ }
+} \ No newline at end of file