upgrade
来自「SMS SDK classes.This is the archive that」· 代码 · 共 22 行
TXT
22 行
#!/bin/sh
#
# Tries to upgrade from V0.2 to V0.3
#
# Those methods that have changed their signature are marked with the
# comment /* NEEDS WORK */
#
# Usage: upgrade < OldCode.java > NewCode.java
#
sed -e '
s/\<AuthTypeNotImplementedException\>/AuthSchemeNotImplException/g
s/\<ProtocolNotSupportedException\>/ProtocolNotSuppException/g
s/\<Codecs.getParameter\>/Util.getParameter/g
s/\<socksHost\>/HTTPClient.&/g
s/\<socksPort\>/HTTPClient.&/g
s/\<socksVersion\>/HTTPClient.&/g
s/\<HTTPConnection\.addAuthorizationInfo\>/AuthorizationInfo\.addAuthorizationInfo \/* NEEDS WORK *\/ /g
s/\<AuthorizationInfo\.setAuthHandler(null)/HTTPConnection\.setDefaultAllowUserInteraction(false)/g
'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?