package com.ctrip.platform.dal.dao.strategy;

public class LocalContextReadWriteStrategy {

    private static InheritableThreadLocal<Boolean> forceMaster = new InheritableThreadLocal<Boolean>();

    public static boolean getReadFromMaster() {
        Boolean shouldReadFromMaster = forceMaster.get();

        return shouldReadFromMaster != null && shouldReadFromMaster;
    }

    protected static void setReadFromMaster() {
        forceMaster.set(true);
    }

    protected static void clearContext() {
        forceMaster.remove();
    }
}

@@ -374,32 +374,29 @@
     %7D%0A%0A    p
-rotected
+ublic
  static void
@@ -465,16 +465,13 @@
    p
-rotected
+ublic
  sta

change method into public