SojuObject.java 1.29 KB
package com.snapchat.soju.shared.android;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class SojuObject
  implements SojuInterface
{
  protected String maskSensitiveValue(String paramString1, String paramString2, int paramInt)
  {
    String str = paramString1;
    StringBuilder localStringBuilder;
    if (paramString1 != null)
    {
      str = paramString1;
      if (!paramString1.isEmpty())
      {
        str = paramString1;
        if (paramString2 != null)
        {
          str = paramString1;
          if (paramString2.length() > paramInt)
          {
            localStringBuilder = new StringBuilder();
            if (paramInt > 0) {
              break label86;
            }
          }
        }
      }
    }
    label86:
    for (str = "";; str = paramString2.substring(0, paramInt))
    {
      str = paramString1.replace(paramString2, str + StringUtils.repeat('*', StringUtils.length(paramString2) - paramInt));
      return str;
    }
  }
  
  public String toString()
  {
    return ToStringBuilder.reflectionToString(this);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/snapchat/soju/shared/android/SojuObject.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */