Skip to content

Commit

Permalink
fix some code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
littleseven committed Sep 13, 2016
1 parent d62d883 commit 5245453
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ protected Initializer(Context context) {
* Configure what services are to be enabled in this instance of WeexInspector.
*/
public static class InitializerBuilder {
final Context mContext;
protected final Context mContext;

// @Nullable DumperPluginsProvider mDumperPlugins;
@Nullable InspectorModulesProvider mInspectorModules;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ public Database.ExecuteSQLResponse executeSQL(String databaseName, String query,
}
}

private static String getFirstWord(String s) {
s = s.trim();
int firstSpace = s.indexOf(' ');
return firstSpace >= 0 ? s.substring(0, firstSpace) : s;
private static String getFirstWord(String str) {
str = str.trim();
int firstSpace = str.indexOf(' ');
return firstSpace >= 0 ? str.substring(0, firstSpace) : str;
}

@TargetApi(DatabaseConstants.MIN_API_LEVEL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public abstract class AbstractChainedDescriptor<E> extends Descriptor implements
public void setSuper(Descriptor superDescriptor) {
Util.throwIfNull(superDescriptor);

if (superDescriptor != mSuper) {
if (!superDescriptor.equals(mSuper)) {
if (mSuper != null) {
throw new IllegalStateException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected final void initialize(Host host) {
mHost = host;
}

final boolean isInitialized() {
protected final boolean isInitialized() {
return mHost != null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

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

public static InputStream teeInputWithDecompression(
NetworkPeerManager peerManager,
Expand Down

0 comments on commit 5245453

Please sign in to comment.