 Issue 29347192:
  Issue 4181 - Fix FilterEngineTest tests  (Closed)
    
  
    Issue 29347192:
  Issue 4181 - Fix FilterEngineTest tests  (Closed) 
  | Left: | ||
| Right: | 
| LEFT | RIGHT | 
|---|---|
| 1 /* | 1 /* | 
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 
| 3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH | 
| 4 * | 4 * | 
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify | 
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as | 
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. | 
| 8 * | 8 * | 
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, | 
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 sb.append(suffix); | 43 sb.append(suffix); | 
| 44 } | 44 } | 
| 45 return sb.toString(); | 45 return sb.toString(); | 
| 46 } | 46 } | 
| 47 | 47 | 
| 48 public static File generateUniqueFile(String prefix, String suffix, File paren t) | 48 public static File generateUniqueFile(String prefix, String suffix, File paren t) | 
| 49 { | 49 { | 
| 50 return new File(parent, generateUniqueFileName(prefix, suffix)); | 50 return new File(parent, generateUniqueFileName(prefix, suffix)); | 
| 51 } | 51 } | 
| 52 | 52 | 
| 53 public void delete(String filePath, boolean deleteSelf) | 53 public static void delete(String filePath, boolean deleteSelf) | 
| 
diegocarloslima
2016/11/03 14:06:02
This method is missing the static modifier
 
anton
2016/12/02 06:15:03
Acknowledged.
 | 
Felix Dahlke
2017/05/09 08:06:45
I may have missed something, but it appears `delet
 
anton
2017/05/10 11:00:14
Done.
 | 
| 54 { | 54 { | 
| 55 delete(new File(filePath), deleteSelf); | 55 delete(new File(filePath), deleteSelf); | 
| 56 } | 56 } | 
| 57 | 57 | 
| 58 public static void delete(File file, boolean deleteSelf) | 58 public static void delete(File file, boolean deleteSelf) | 
| 59 { | 59 { | 
| 60 if (file.isDirectory()) | 60 if (file.isDirectory()) | 
| 61 { | 61 { | 
| 62 deleteDirectory(file, deleteSelf); | 62 deleteDirectory(file, deleteSelf); | 
| 63 } | 63 } | 
| (...skipping 17 matching lines...) Expand all Loading... | |
| 81 directory.delete(); | 81 directory.delete(); | 
| 82 } | 82 } | 
| 83 } | 83 } | 
| 84 | 84 | 
| 85 public static void deleteFile(File file) | 85 public static void deleteFile(File file) | 
| 86 { | 86 { | 
| 87 Log.w(TAG, "Deleting file " + file.getAbsolutePath()); | 87 Log.w(TAG, "Deleting file " + file.getAbsolutePath()); | 
| 88 file.delete(); | 88 file.delete(); | 
| 89 } | 89 } | 
| 90 } | 90 } | 
| LEFT | RIGHT |