Skip to content

Commit 69977ca

Browse files
committed
see 02/26 log
1 parent 14b2d7f commit 69977ca

File tree

3 files changed

+157
-156
lines changed

3 files changed

+157
-156
lines changed

utilcode/src/main/java/com/blankj/utilcode/util/CacheUtils.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public final class CacheUtils {
6262
* <p>cache size: unlimited</p>
6363
* <p>cache count: unlimited</p>
6464
*
65-
* @return the single {@link CacheUtils} instance.
65+
* @return the single {@link CacheUtils} instance
6666
*/
6767
public static CacheUtils getInstance() {
6868
return getInstance("", DEFAULT_MAX_SIZE, DEFAULT_MAX_COUNT);
@@ -75,7 +75,7 @@ public static CacheUtils getInstance() {
7575
* <p>cache count: unlimited</p>
7676
*
7777
* @param cacheName The name of cache.
78-
* @return the single {@link CacheUtils} instance.
78+
* @return the single {@link CacheUtils} instance
7979
*/
8080
public static CacheUtils getInstance(final String cacheName) {
8181
return getInstance(cacheName, DEFAULT_MAX_SIZE, DEFAULT_MAX_COUNT);
@@ -87,7 +87,7 @@ public static CacheUtils getInstance(final String cacheName) {
8787
*
8888
* @param maxSize The max size, in bytes, of cache.
8989
* @param maxCount The max count of cache.
90-
* @return the single {@link CacheUtils} instance.
90+
* @return the single {@link CacheUtils} instance
9191
*/
9292
public static CacheUtils getInstance(final long maxSize, final int maxCount) {
9393
return getInstance("", maxSize, maxCount);
@@ -100,7 +100,7 @@ public static CacheUtils getInstance(final long maxSize, final int maxCount) {
100100
* @param cacheName The name of cache.
101101
* @param maxSize The max size, in bytes, of cache.
102102
* @param maxCount The max count of cache.
103-
* @return the single {@link CacheUtils} instance.
103+
* @return the single {@link CacheUtils} instance
104104
*/
105105
public static CacheUtils getInstance(String cacheName, final long maxSize, final int maxCount) {
106106
if (isSpace(cacheName)) cacheName = "cacheUtils";
@@ -114,7 +114,7 @@ public static CacheUtils getInstance(String cacheName, final long maxSize, final
114114
* <p>cache count: unlimited</p>
115115
*
116116
* @param cacheDir The directory of cache.
117-
* @return the single {@link CacheUtils} instance.
117+
* @return the single {@link CacheUtils} instance
118118
*/
119119
public static CacheUtils getInstance(@NonNull final File cacheDir) {
120120
return getInstance(cacheDir, DEFAULT_MAX_SIZE, DEFAULT_MAX_COUNT);
@@ -126,7 +126,7 @@ public static CacheUtils getInstance(@NonNull final File cacheDir) {
126126
* @param cacheDir The directory of cache.
127127
* @param maxSize The max size, in bytes, of cache.
128128
* @param maxCount The max count of cache.
129-
* @return the single {@link CacheUtils} instance.
129+
* @return the single {@link CacheUtils} instance
130130
*/
131131
public static CacheUtils getInstance(@NonNull final File cacheDir,
132132
final long maxSize,
@@ -558,7 +558,7 @@ public Object getSerializable(@NonNull final String key, final Object defaultVal
558558
/**
559559
* Return the size, in bytes, of cache.
560560
*
561-
* @return the size, in bytes, of cache.
561+
* @return the size, in bytes, of cache
562562
*/
563563
public long getCacheSize() {
564564
return mCacheManager.getCacheSize();
@@ -567,7 +567,7 @@ public long getCacheSize() {
567567
/**
568568
* Return the count of cache.
569569
*
570-
* @return the count of cache.
570+
* @return the count of cache
571571
*/
572572
public int getCacheCount() {
573573
return mCacheManager.getCacheCount();
@@ -710,7 +710,7 @@ private boolean clear() {
710710
/**
711711
* Remove the oldest files.
712712
*
713-
* @return the size, in bytes, of oldest files.
713+
* @return the size, in bytes, of oldest files
714714
*/
715715
private long removeOldest() {
716716
if (lastUsageDates.isEmpty()) return 0;

utilcode/src/main/java/com/blankj/utilcode/util/DeviceUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static String getSDKVersionName() {
5757
/**
5858
* Return version code of device's system.
5959
*
60-
* @return version code of device's system.
60+
* @return version code of device's system
6161
*/
6262
public static int getSDKVersionCode() {
6363
return android.os.Build.VERSION.SDK_INT;
@@ -154,7 +154,7 @@ private static String getMacAddressByFile() {
154154
* Return the manufacturer of the product/hardware.
155155
* <p>e.g. Xiaomi</p>
156156
*
157-
* @return the manufacturer of the product/hardware.
157+
* @return the manufacturer of the product/hardware
158158
*/
159159

160160
public static String getManufacturer() {

0 commit comments

Comments
 (0)