File tree 1 file changed +18
-4
lines changed
src/main/java/com/amazonaws/samples/appconfig/utils
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
1
// depreciation example - sun.misc.BASE64Encoder;
2
2
package com .amazonaws .samples .appconfig .utils ;
3
- import sun .misc .BASE64Encoder ;
3
+ // import sun.misc.BASE64Encoder;
4
4
5
+ import java .util .Calendar ;
5
6
import java .util .Date ;
7
+ import java .util .GregorianCalendar ;
8
+ import java .util .logging .Logger ;
6
9
7
10
8
11
public class Encoder {
9
12
10
- Date defaultDate = new Date (1999 , 0 , 1 );
13
+ Logger logger = Logger .getLogger (Encoder .class .getName ());
14
+
15
+ private String unUsedVariable ;
16
+
17
+ Date defaultDate ;
18
+
19
+ {
20
+ Calendar calendar = new GregorianCalendar (1999 , Calendar .JANUARY , 1 );
21
+ defaultDate = calendar .getTime ();
22
+ System .out .println ("test ast-grep " +defaultDate );
23
+ }
11
24
12
25
byte [] bytes = new byte [57 ];
13
- String enc1 = new sun .misc .BASE64Encoder ().encode (bytes );
26
+ // String enc1 = new sun.misc.BASE64Encoder().encode(bytes);
27
+
14
28
15
29
16
- }
30
+ }
You can’t perform that action at this time.
0 commit comments