diff --git a/eo-maven-plugin/src/main/java/org/eolang/maven/rust/Names.java b/eo-maven-plugin/src/main/java/org/eolang/maven/rust/Names.java index ab362fbdd4..2154266e86 100644 --- a/eo-maven-plugin/src/main/java/org/eolang/maven/rust/Names.java +++ b/eo-maven-plugin/src/main/java/org/eolang/maven/rust/Names.java @@ -189,20 +189,13 @@ private static ConcurrentHashMap load(final Path src) throws IOE final Object result = map.readObject(); if (result.getClass() != ConcurrentHashMap.class) { throw new ClassCastException( - String.format( - "Object inside %s has wrong class %s", - src, - result.getClass() - ) + String.format("Object inside %s has wrong class %s", src, result.getClass()) ); } return (ConcurrentHashMap) result; } catch (final ClassNotFoundException exc) { throw new IllegalArgumentException( - String.format( - "File %s contains invalid data", - src - ), + String.format("File %s contains invalid data", src), exc ); } diff --git a/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java b/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java index bef9fcaa8b..ed9af8e97e 100644 --- a/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java +++ b/eo-runtime/src/main/java/EOorg/EOeolang/EOrust.java @@ -189,20 +189,13 @@ private static ConcurrentHashMap load(final String src) throws I final Object result = map.readObject(); if (result.getClass() != ConcurrentHashMap.class) { throw new ClassCastException( - String.format( - "Object inside %s has wrong class %s", - src, - result.getClass() - ) + String.format("Object inside %s has wrong class %s", src, result.getClass()) ); } return (ConcurrentHashMap) result; } catch (final ClassNotFoundException exc) { throw new IllegalArgumentException( - String.format( - "File %s contains invalid data", - src - ), + String.format("File %s contains invalid data", src), exc ); }