update code style
This commit is contained in:
1 parent
1f7eb04215
commit
b82243a9c0
298 files changed
+3902
-3998
No files matched your search
@@ -1,12 +1,12 @@
|
||||
/**
|
||||
* Copyright 2013 Netflix, Inc.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -54,9 +54,8 @@ public final class OperationMostRecent {
|
||||
|
||||
@Override
|
||||
public T next() {
|
||||
if (observer.getException() != null) {
|
||||
if (observer.getException() != null)
|
||||
throw Exceptions.propagate(observer.getException());
|
||||
}
|
||||
return observer.getRecentValue();
|
||||
}
|
||||
|
||||
@@ -67,6 +66,7 @@ public final class OperationMostRecent {
|
||||
}
|
||||
|
||||
private static class MostRecentObserver<T> implements Observer<T> {
|
||||
|
||||
private final AtomicBoolean completed = new AtomicBoolean(false);
|
||||
private final AtomicReference<T> value;
|
||||
private final AtomicReference<Exception> exception = new AtomicReference<>();
|
||||
|
||||
Reference in new issue
Block a user