Skip to content

Commit

Permalink
Merge pull request #23 from weexteam/littleseven-patch-1
Browse files Browse the repository at this point in the history
fix some code style issues
  • Loading branch information
littleseven authored Sep 13, 2016
2 parents b876f6c + 859a2b2 commit d62d883
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void setSuper(Descriptor superDescriptor) {
}
}

final Descriptor getSuper() {
public final Descriptor getSuper() {
return mSuper;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public abstract class Descriptor implements NodeDescriptor {
protected Descriptor() {
}

final void initialize(Host host) {
protected final void initialize(Host host) {
Util.throwIfNull(host);
Util.throwIfNotNull(mHost);
mHost = host;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import android.widget.TextView;

import com.taobao.weex.WXSDKInstance;
import com.taobao.weex.WXSDKManager;
import com.taobao.weex.devtools.WeexInspector;
import com.taobao.weex.devtools.common.Accumulator;
import com.taobao.weex.devtools.common.Predicate;
import com.taobao.weex.devtools.common.ThreadBound;
Expand Down Expand Up @@ -346,14 +344,12 @@ public boolean onTouchEvent(MotionEvent event) {
final View parent = (View)getParent();
View view = ViewUtil.hitTest(parent, event.getX(), event.getY(), mViewSelector);

if (event.getAction() != MotionEvent.ACTION_CANCEL) {
if (view != null) {
mHighlighter.setHighlightedView(view, INSPECT_HOVER_COLOR);
if (view != null && event.getAction() != MotionEvent.ACTION_CANCEL) {
mHighlighter.setHighlightedView(view, INSPECT_HOVER_COLOR);

if (event.getAction() == MotionEvent.ACTION_UP) {
if (mListener != null) {
mListener.onInspectRequested(view);
}
if (event.getAction() == MotionEvent.ACTION_UP) {
if (mListener != null) {
mListener.onInspectRequested(view);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

// @VisibleForTest
public class DecompressionHelper {
static final String GZIP_ENCODING = "gzip";
static final String DEFLATE_ENCODING = "deflate";
private static final String GZIP_ENCODING = "gzip";
private static final String DEFLATE_ENCODING = "deflate";

public static InputStream teeInputWithDecompression(
NetworkPeerManager peerManager,
Expand Down

0 comments on commit d62d883

Please sign in to comment.