1
1
package fr .free .nrw .commons .contributions ;
2
2
3
+ import static java .lang .annotation .RetentionPolicy .SOURCE ;
4
+
3
5
import android .content .Context ;
4
6
import android .net .Uri ;
5
7
import android .os .Parcel ;
6
-
7
8
import androidx .annotation .NonNull ;
8
9
import androidx .annotation .StringDef ;
9
10
import androidx .room .Entity ;
10
11
import androidx .room .PrimaryKey ;
11
-
12
- import org .apache .commons .lang3 .StringUtils ;
13
-
14
- import java .lang .annotation .Retention ;
15
- import java .util .ArrayList ;
16
- import java .util .Date ;
17
- import java .util .HashMap ;
18
- import java .util .Locale ;
19
-
20
12
import fr .free .nrw .commons .CommonsApplication ;
21
13
import fr .free .nrw .commons .Media ;
22
14
import fr .free .nrw .commons .filepicker .UploadableFile ;
23
15
import fr .free .nrw .commons .settings .Prefs ;
24
16
import fr .free .nrw .commons .utils .ConfigUtils ;
25
-
26
- import static java .lang .annotation .RetentionPolicy .SOURCE ;
17
+ import java .lang .annotation .Retention ;
18
+ import java .util .ArrayList ;
19
+ import java .util .Date ;
20
+ import java .util .Locale ;
21
+ import java .util .Map ;
22
+ import org .apache .commons .lang3 .StringUtils ;
27
23
28
24
@ Entity (tableName = "contribution" )
29
25
public class Contribution extends Media {
@@ -82,7 +78,7 @@ public Contribution[] newArray(int i) {
82
78
83
79
public Contribution (Uri contentUri , String filename , Uri localUri , String imageUrl , Date dateCreated ,
84
80
int state , long dataLength , Date dateUploaded , long transferred ,
85
- String source , HashMap <String , String > captions , String description , String creator , boolean isMultiple ,
81
+ String source , Map <String , String > captions , String description , String creator , boolean isMultiple ,
86
82
int width , int height , String license ) {
87
83
super (localUri , imageUrl , filename , captions , description , dataLength , dateCreated , dateUploaded , creator );
88
84
this .contentUri = contentUri ;
@@ -96,7 +92,7 @@ public Contribution(Uri contentUri, String filename, Uri localUri, String imageU
96
92
this .dateCreatedSource = "" ;
97
93
}
98
94
99
- public Contribution (Uri localUri , String imageUrl , String filename , HashMap <String , String > captions , String description , long dataLength ,
95
+ public Contribution (Uri localUri , String imageUrl , String filename , Map <String , String > captions , String description , long dataLength ,
100
96
Date dateCreated , Date dateUploaded , String creator , String editSummary , ArrayList <String > depictionsEntityIds , String decimalCoords ) {
101
97
super (localUri , imageUrl , filename , captions , description , dataLength , dateCreated , dateUploaded , creator );
102
98
this .decimalCoords = decimalCoords ;
@@ -105,7 +101,7 @@ public Contribution(Uri localUri, String imageUrl, String filename, HashMap<Stri
105
101
this .depictionsEntityIds = depictionsEntityIds ;
106
102
}
107
103
108
- public Contribution (Uri localUri , String imageUrl , String filename , HashMap <String , String > captions , String description , long dataLength ,
104
+ public Contribution (Uri localUri , String imageUrl , String filename , Map <String , String > captions , String description , long dataLength ,
109
105
Date dateCreated , Date dateUploaded , String creator , String editSummary , String decimalCoords , int state ) {
110
106
super (localUri , imageUrl , filename , captions , description , dataLength , dateCreated , dateUploaded , creator );
111
107
this .decimalCoords = decimalCoords ;
0 commit comments