提交 feb86a16 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 d351d35a
...@@ -72,12 +72,12 @@ public class DataUtils { ...@@ -72,12 +72,12 @@ public class DataUtils {
* available. * available.
*/ */
public static final int ERROR_CHUNK_NOT_FOUND = 9; public static final int ERROR_CHUNK_NOT_FOUND = 9;
/** /**
* The block in the stream store was not found. * The block in the stream store was not found.
*/ */
public static final int ERROR_BLOCK_NOT_FOUND = 50; public static final int ERROR_BLOCK_NOT_FOUND = 50;
/** /**
* The transaction store is corrupt. * The transaction store is corrupt.
*/ */
...@@ -788,7 +788,7 @@ public class DataUtils { ...@@ -788,7 +788,7 @@ public class DataUtils {
/** /**
* Format an error message. * Format an error message.
* *
* @param errorCode the error code * @param errorCode the error code
* @param message the message * @param message the message
* @param arguments the arguments * @param arguments the arguments
......
...@@ -347,7 +347,7 @@ public class StreamStore { ...@@ -347,7 +347,7 @@ public class StreamStore {
byte[] data = map.get(key); byte[] data = map.get(key);
if (data == null) { if (data == null) {
throw DataUtils.newIllegalStateException( throw DataUtils.newIllegalStateException(
DataUtils.ERROR_BLOCK_NOT_FOUND, DataUtils.ERROR_BLOCK_NOT_FOUND,
"Block {0} not found", key); "Block {0} not found", key);
} }
return data; return data;
...@@ -421,8 +421,8 @@ public class StreamStore { ...@@ -421,8 +421,8 @@ public class StreamStore {
buffer = nextBuffer(); buffer = nextBuffer();
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
String msg = DataUtils.formatMessage( String msg = DataUtils.formatMessage(
DataUtils.ERROR_BLOCK_NOT_FOUND, DataUtils.ERROR_BLOCK_NOT_FOUND,
"Block not found in id {0}", "Block not found in id {0}",
Arrays.toString(idBuffer.array())); Arrays.toString(idBuffer.array()));
throw new IOException(msg, e); throw new IOException(msg, e);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论