app/src/main/java/ch/epfl/sdp/appart/utils/DatabaseSync.java
Method writeAndComplete
has 9 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
private static void writeAndComplete(CompletableFuture<Void> result, LocalDatabaseService ldb,
String adId, String cardId, User user, Ad ad, List<Bitmap> images,
List<CompletableFuture<Bitmap>> panoramasBitmaps, Bitmap pfp) {
Method saveCurrentUserToLocalDB
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
public static CompletableFuture<Void> saveCurrentUserToLocalDB(Context context,
DatabaseService db,
LocalDatabaseService ldb,
String userId) {
CompletableFuture<Void> result = new CompletableFuture<>();
Method saveFavoriteAd
has 7 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
public static CompletableFuture<Void> saveFavoriteAd(Context context,
DatabaseService db,
LocalDatabaseService ldb,
String cardId, String adId,
Ad ad, List<Bitmap> images) {