mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
06a288c305
commit
61a914fa28
@ -45,10 +45,10 @@ public abstract class AbstractDataSourcePoolMetadata<T extends DataSource> imple
|
||||
return null;
|
||||
}
|
||||
if (maxSize < 0) {
|
||||
return -1F;
|
||||
return -1f;
|
||||
}
|
||||
if (currentSize == 0) {
|
||||
return 0F;
|
||||
return 0f;
|
||||
}
|
||||
return (float) currentSize / (float) maxSize;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user