From 15df154c606b665ae9599c2c8fc4c528200ab00a Mon Sep 17 00:00:00 2001 From: TISSOT <985371919@qq.com> Date: Fri, 2 Sep 2016 09:27:21 +0800 Subject: [PATCH] =?UTF-8?q?xujiaming=202016-9-2=20=E4=BF=AE=E6=AD=A3SonarQ?= =?UTF-8?q?ube?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.txt | 1 + .../bin/classes/com/stone/date/MessageDef.class | Bin 400 -> 609 bytes .../bin/classes/com/stone/date/TypeDef.class | Bin 1173 -> 1382 bytes .../com/stone/shop/adapter/AIContentAdapter$1$1.class | Bin 1118 -> 1118 bytes .../com/stone/shop/adapter/AIContentAdapter$1.class | Bin 2571 -> 2571 bytes .../com/stone/shop/adapter/AIContentAdapter$2$1.class | Bin 1193 -> 1193 bytes .../com/stone/shop/adapter/AIContentAdapter$2.class | Bin 2193 -> 2193 bytes .../com/stone/shop/adapter/AIContentAdapter$3.class | Bin 1467 -> 1467 bytes .../shop/adapter/AIContentAdapter$ViewHolder.class | Bin 1110 -> 1110 bytes .../com/stone/shop/adapter/AIContentAdapter.class | Bin 4242 -> 4242 bytes .../classes/com/stone/shop/view/LoginActivity$2.class | Bin 1244 -> 1244 bytes .../classes/com/stone/shop/view/LoginActivity$3.class | Bin 1644 -> 1620 bytes .../com/stone/shop/view/LoginActivity$4$1.class | Bin 2094 -> 2094 bytes .../classes/com/stone/shop/view/LoginActivity$4.class | Bin 1492 -> 1492 bytes .../shop/view/LoginActivity$BaseUiListener.class | Bin 2897 -> 2897 bytes .../classes/com/stone/shop/view/LoginActivity.class | Bin 8649 -> 8740 bytes .../classes/com/stone/shop/view/MainActivity.class | Bin 1996 -> 1981 bytes .../classes/com/stone/shop/view/MultiViewGroup.class | Bin 8176 -> 8238 bytes .../classes/com/stone/shop/view/ShopActivity.class | Bin 3715 -> 3814 bytes .../com/stone/shop/view/ShopItemActivity.class | Bin 9248 -> 9431 bytes .../src/com/stone/date/MessageDef.java | 9 ++- .../src/com/stone/date/TypeDef.java | 7 ++ .../src/com/stone/shop/adapter/AIContentAdapter.java | 3 +- .../src/com/stone/shop/view/LoginActivity.java | 63 ++++++++++-------- .../src/com/stone/shop/view/MainActivity.java | 7 +- .../src/com/stone/shop/view/MultiViewGroup.java | 62 +++++++++-------- .../src/com/stone/shop/view/ShopActivity.java | 38 +++++++---- .../src/com/stone/shop/view/ShopItemActivity.java | 62 +++++++++++------ 28 files changed, 162 insertions(+), 90 deletions(-) diff --git a/readme.txt b/readme.txt index 0758d62..de12ed2 100644 --- a/readme.txt +++ b/readme.txt @@ -20,3 +20,4 @@ 10.新闻界面最终版修改 9:41 2016/8/30 +?. 许家铭修正SonarQube 9:26 2016/9/2 \ No newline at end of file diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/date/MessageDef.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/date/MessageDef.class index 22f75d60f69dc7b3df055cd1f35ffe1e9472ae80..98fa6a191dcbc0df72bcec647bd66a9fea9c51d2 100644 GIT binary patch delta 266 zcmbQh{E&s~)W2Q(7#J9g7!)UReXHkA$uG{&O)bgD%uDBB5MyKz56`GnNJ&l0%u7`O ziWVz?B=b|OI2a@t8F&>u6;kr^)Jqhy^YY8N7^E0v*cqf583YpZQi}33Q}jzqGIR8O z^3!=3WEtcb85lDe8Pqj=vJ%S@^>Y&Q()EK&ihveb!$r8^LYkfv|9LSoP4;BeN@8OW z1iFxife}cuG6*pU18F7(5wHj^kZlg+f#f)aM1{n6Fi3`P1S=2#l3YM35Xr&7jbsQX M)DT7nd9X?a07A<(IRF3v delta 58 zcmaFJGJ%=v)W2Q(7#J9g7{n%WeVg3F=)uT1`6{E9EDM7mP?(2-5lFH!2r&o)X+{PS JAj!la3IM@R3N8Qu diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/date/TypeDef.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/date/TypeDef.class index 78e9dd7d4640b34fd0ca3a1c0fd2d8eb18ef506d..d5032e0c97b16a964532d49d6439d47f3b4eb483 100644 GIT binary patch delta 306 zcmbQr`HYL})W2Q(7#J9g7_v8V-DIlgPRTFM&rL1K$jnRUU`SwO5D(9&R7gop%gjqv z0E!kXfF$!%tT-5w7#VmKJQY&%^VCZevh(uGxfoIy(%2bN85sl;^HPfPGgI_SOEPox zee%78w!;r@y&rk})oeT;L(}DCX2BpbvEJjJ(3=u$|@Gvj}Nmhm!hFBoY z#1O~83l!l4vdw`!kQ}E_yino}hUD;#UfixpS9FSyUhz9_Suo6=M diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter$1$1.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter$1$1.class index 1a39dc80ab61397cc63c29ca129be1c8e628fbc3..dc95543834e9447dca46d064841781fe91dceb43 100644 GIT binary patch delta 41 tcmcb|agSp|EHh)|-6wx?T)i4BiZ4489EF3;_)441o-03_%PbK$yr7%8<-6wy50<23_c8E41Nsa41o;l3_%QL48aT`4518(3}Fn} X4B-sL43P}g3{ebI8L}oX=S%?r?0gPf diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter$2$1.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter$2$1.class index c448f67c94ba4ebc30d825577068b61383147353..1aa8a301ec9ddd3f3327a6917634c07bcdb159ce 100644 GIT binary patch delta 29 lcmZ3vIYSF(nkt2 diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter$ViewHolder.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter$ViewHolder.class index b43b5801ad4161ff1116a310a44fd76ec2d42463..766d9da22e8a76d59c669d4d2a7f5c1d2226a005 100644 GIT binary patch delta 39 ucmcb{agAd`G&AGm$uZ2fj58+BVm6+{!ZZ0MvpSH&$YL~!g>$kEixdC`y$i7b delta 41 tcmcb{agAd`G&AFr$uZ2flg~2qOkT>Y!8mL3Ic6g;kB3Da$TMM40su0w4O0LB diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/adapter/AIContentAdapter.class index 43a035451332363b8a6d847f2827a2a7ec04499b..72596e4c96bc81a58954aee357cb691027593671 100644 GIT binary patch delta 157 zcmWN|xembq9Khkk$3}--~~)# zmRL34{Mo9lUMGq~Z&M}c+i3WSp%5obf~2QL3X3#jGR(=cB*&UOdkUN=azV$TgiDz_ zRUY1WV(_BQhX!Ao{AdZZB|=9ux}wvQ3Z|I!WrQU&2C`x(y8sJ0vlW-a@f~vhWP}}r delta 157 zcmWN{JqrN=9KhkfU`Y|15^Kursc=H$LKT-99y)h_ yKWOm8;6;-UExxq*(GloMjGiRui-svW12M5=!cZ2BWW`u^A#6Fb6_3O59dZ9}G##h_ diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$2.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$2.class index 9cf2561f10a1c3e7e60678d03d5da52de1ac3955..c1e77aa440d6877515663ff0ca8f7815ef4203a9 100644 GIT binary patch delta 31 ncmcb^d53d@HVfm4$vQ02yr&r?7|t-rFq~yjW;i!_3X2B-qE88$ delta 31 ncmcb^d53d@HVfn4$vQ02yayO07!ESXFdSk~W;i@~3X2B-pKb|b diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$3.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$3.class index 9c654196b7ad2071cb543ac595bd3baac1161030..024992479039765ef77d304a2825d0ecef62b268 100644 GIT binary patch delta 94 zcmaFEbA^ZN)W2Q(7#J9g7=ku(tz+R4Vr1Y*PApE1Pb_eR44e$x t8RQstFlaFBWH4jc#bC#jfyQt#FajYM003#{7%Kn( delta 118 zcmcb@^M;4()W2Q(7#J9g7=kx)tz%IMWMp8^&vVYnOwMLx5YzBU%u6ZC&rH!T%S=>3!-o@(8x)La}YBCp_ PHGdG$crFG;AOr&da>X9M diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$4$1.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$4$1.class index 2f40aa55029c64289cf6b4c6a4f9e5529e02b7f2..06303a1fb7a4b8e2c04fa903297da5ad8feac90b 100644 GIT binary patch delta 61 zcmZ1{uufpZ1vVx|*2$OH7HctbFmNz(G6*tqF$gnqGsrUXFeozeG8i!OF*q~wGk7x! RFa$6PGK4Y;O`gx*4**fF3331c delta 61 zcmZ1{uufpZ1vVyzUz0DfE!JZA%fP|#k3o>(KZ7tM1A{ChBZDF%6N3RGGlMfD3xhW! RD?cc2H NIhoZ4sCWUZ2>_`c4CVj; delta 58 zcmcb@eT92NGz;U$$uTSzjGre@Wyuy}_{PA&@STB|;Rk~d!%qe|hF=Woj2x52SbZ3| OCMUDn02MD_H30xE=Mi%N diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$BaseUiListener.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity$BaseUiListener.class index 035a1cb9731558d5288043d95545bb785f787634..804652c7ecf606cf2c51473fb395b73547491af8 100644 GIT binary patch delta 119 zcmV--0Eqw57SR^4zX$=*lfVeJJ=FjN0M-Bx0M`Hz0NDT)0NMZ?0NVg30Nem50N(&G z0O0^R0O9~W0OSBk0ObH#0O$Z`0O5lko~Y0nw8$3nC6~CawSg delta 119 zcmV--0Eqw57SR^4zX$=wlfVeJJ<0$C0LuUm0L%ao0L}mv0M7s%0MGy@0MP&_0Mr05 z0M-CG0M`IL0NDUZ0NMaq0Nns*0Nwy^0N((10N|6e34Q_NlQIfl3FZJA0OtT50O*sN Z3Qh^@00{u>01N=_lko~Y0mhRr3nI>XC7S>M diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/LoginActivity.class index 98bc9a6bef915f39e9f34b076e7b537e5dd9fb7f..a6651586cfba44c054cfc420d87b3f34751c4deb 100644 GIT binary patch delta 2150 zcmY*bZE#fO6@H%Gkh{6L$?j(Ju_0fZPr}`VO=5zDLP8cp1rme+YC<(G$r@L}ZpZlP!ASB#inem4+wzVC{>CbkiGwlxw)9JLGX>02j?YW!K*gJFY zbKdto_dVx%&Ux?dhZ|qN&GX9}KYb5C8!u^a5Y_6avwEhr%P1xOVc?%wLAZt^$>`Ai z2jUw3MHH)#-No4&J|*hJxlnzY?=|oVJ~z;SFNkK9?=4fU?jj904E%>seeO0o)Dd@e z&azaZKRQbIRmAPrb&SzvFo(K2Y^(^=!0$BX5k-;s$V4JG5=uo6r$Rj=u~cO5SX8H* zUX32YH=NiXN~RL=Xy`yHHWu0~4}%5tsXrL2S)}}VHSHw^{rEK@5hKZzi^~bnAcm4eQ_4m}(C*HU|_vY27=dV8V)YbD( zUVG)J#yWK&uX0T-Or5n{VX)DTk(-RBb|<3~@yLG3vX-X7;LZ8%k!12vVq!#NGf``c z>#4g%XA?sr7h8z#Ms>tltM=qqxoX*F;OD$W<$9~stNAtRl)KKQ^H#3W_%-zxcd2tN zzpix8V9~8yZ?My@O;+-O#379v7B|nUYuDL@4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0T9Ytu#!gnNd(%T~{G7v;Dc&%FeZGO}FH>D^6oV=bBekt;sos zNXqSXmfQ9EV#>DdLdu}X4HJ`+gh%`7KHL>Rbz*EGaLk)5aLaqAW)77V;z4wWQ~t}j z6S(erKh@l>BKJ)m@X)hE>G35V=`2g`KeL%sf?w-v!MOFN!6*fT!>pLpy!W9k#q{24 z&y#U966|Il`#Hb}!*VhfXGn66gWlQj%K8T`eW6&6&3@v#<#RK(=yN+M!sniklle#{ zI;8qM-r&46Bhi=AR0HKRl@ImBg}nAJClT5KCA2@J4b)A!8I`?K^X!qD##-lyJV!Yp z8^|-pJQ>;lF_y5Y%iAtlUT~6EoZ_`OViGG5mimS`L$U^Hl_x0TJ}sFB1L8YQQb6M@ZfJXD1D{? diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/MultiViewGroup.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/MultiViewGroup.class index 904337f04db2672468cce48f56def803ce3c92ee..7e42b82471d029463c138411ede6b58c58affe22 100644 GIT binary patch delta 2215 zcmZ8iYj7LY75+ZGR$i?v$%-P&k{@xNmTV^`MIlP!N8K1Zi6NALZ5$H2@+J{DcA_YD z4YZnJCevg(lMcQ8M+XMT;7+I0sZ%VwO(*?T+M$nWVTR5W2Ku9=P-sd^DFl+xvn%C6 zcV~CMz31F}&-b0PXW#GoVYmL$wVz%Da2tyY`mEkY{LR4Ih!fuI_zCmip_5aD+nh0{ z3i6yV3**B&Ud4L`{((#CjK0S8zJY(K1wDN910vAY);42KPG@t4xnaRxd`MKCm>NIU zG-)0x=pa5a@G&kChBdlx`rd5bG^Z@XCk8&nDB(YB7J855CMSBQPfiuQxJu~u3i;gO zBlZ%X8HDQa#X@u#bXu`$c{4kgoix?MzUGyhL9extE(^)>)030KUh3*O-xeC`HQ#_M zNUT+F_?rE>6HPiUu*SeehSiXI;XK+0?s6l_HCuuOnR`rB`o98xzoB0LxvcI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OTrm%2ube2VY~3R*FZIQsy{c>7k2gQVO=E2 z7r48~ecyC5!kur?m@7P+h62pdJF1D@|A7B&PDJ><4g8Vl(H)L4-j)!VqNt4Bat2_JhAsgtV?w#$ zgT>=Qxe>%TPY9*U%GzJT$b;2_l8up9&UPCk^-*K2_N!v=;0#a7Y5(bMm4BA6!TUe1 C%FNpU diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/ShopActivity.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/ShopActivity.class index 34ede834d9daa0794ed9ae575e7ae338ddfb78d5..de7e7adfcac9f0479786bb4b285fa40cd9f094b4 100644 GIT binary patch delta 1080 zcmZWoSx*yD6#iz~nQ4b9ON$grMnHoxqm_snMWb!h1PKa8NB}h|Lct15kq!u=)?INy z@w#9YMN#U?BBmso7@vLd#dqKQ1HKyLnE~qqncQvDu4a+@iTx@%uLH( zp+E+QW(6Ur92`xJ(a^z`ZrzD>XjO0oVYX2$&S>Mnm70Ma3Uox6E(X16 z<{)>Jhg*!=P_GenAVxjcnBKDr&Y50kM|Jl<=LP1F>P43k*;-%Abg7t)NfkB;w^>lo z=)S{#2+QsFI1~?MX0rk@iye@B>4Fhyj2bfHcqHK=`z__!M(~*BI`)cjj4F7_dL4z_ zbISFyDMyxPoP%J5jrNcU{VJp>_JRM zlui#>7Sq{IXBnM-O--UHfgbHWTGY}{*wNrVI*XmE{ZJCsNz}}uJ%M^Pj@(b^Y|z|Y zvoJP_TArB1@dN^t)<2(idO=zddCyqhScCig0=I3N2CyTGm{!YDj* z+zb&nyR?{e}og)MIs}c8v1GAQ^?0@6e7k}r+YVzTMeij-jc>sOb*@=02_T1)>xC)zVh_kW<~RV K7icZsi_X7ml;BYS delta 1007 zcmZWoTTc^F5dOB8-F8_J3bdeEq$WgCMGa~oCIT8SR1jjs2#8t&1&Tm{E)^85f)^C= zc0{y-fT)NHh$JO}gv3{042ci^0u!DL@@ArOw#BL;n>q7kX1=+cIr~-al%qfXnw=7BY$R_S>kwi^5f!MBAi>3c>UZ#GB-Ejv zW$;_H0^DrEU}2L&4A;ay2&tkGJK>R_poQh=Q`Vg2z@>}e&?ey=&ND@y!(Ctt`VARs zpijajv~UpX54x(9B4?}OF`$De+g0xs30GCGvA(e7kMla~=ZmA_6}P>i%H3RFuDIL{ z><6C`6{)!Q78mWQP+VS@(#B*VFPej1ahH1(5q)?p;1P>4Bx?P5!qN<-d>;lRJY_wG zWNw&7NR1s)!(B?9Q=RsOgqIj)i-rPjjAa@>as0GF9OsOS&_kdbTxRnT>wRB*B0MBs zvLumok~m3bW&IH1=TK2%GdX8ay^FUc@&VM!y0E$7U$Y*zm8MoaJ}Y@uY~o3LUeSdt203|j}Ob_DI>HO;D}?@h4Nx3m|v<8e%oR{t|S J?QN1b{sx3u-46f& diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/ShopItemActivity.class b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/bin/classes/com/stone/shop/view/ShopItemActivity.class index 8e00dcb765b00a8eeba2324ab7ac252463940d60..b4504822ed0934faa2c31a5289e25a1d184b8cd2 100644 GIT binary patch delta 1629 zcmYjR3s96*6#l+t*f*}a$Y61Wv7=IB0C#kCI6xhX&r^3L zczW14hk%{AoU3sjA5^Df(=899#>$ZD;c#0P@DVE)s(uca_fhO7EX6ZxedRSaE+$-O zS~vf?y`f{#l8(iz&$P_%SiZhvMWdBV)B;B`m#TG+l;nC8S-DJL&G60gWz`1D%Cm<1 zg2i?&=SnMAs8bGC#FJF&k|Qaxflq0;nNJhu^ien6V`n{|)wr6^slLtuwgr4a+nEBdip4!8tC%#<$hkIFIFBjhnbx zX)cd>3z4W&ViFy8HlZp?HZ^M)h-@3TsYx!kxs6DXyu_(xuGpye3}8EmOtm)JqxQPG zr|lwQeU<*|K$$-)P?MEcTj?*Cuy!IxI)0#W4?k4@xbo8XN;su~fZv$@MB_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*t$~A20uCr*f2-4O` zH^m&-C-X9y56Iln$r8_2_SgC3c9s%4CoaY99w(pCSzeD&D=UkftZHUtcq^ktEu7NK z7f0OFL+5m_xfSD!ZdGpK%gvbJWNl1G&}Ejv$+sPbCG<~)~0=X^s$yy{$7ANRB< z?kQ=DM3aQRGWLQd<3Z%$5C-B13UL&paSX*cj#`|+BAmo>oW?4g!FrsmfM0~fI?|ZGSY%FT#RAL3#-zaT#OqBTDfTLb!q{ zxQdzh8T0WA7ULRL;8(21Z&-^z<7fxNCi-=PHbJ(I`}t`+;W~~M#wO#GpYd}cD^iRH z_=S)vML&MYgHo3edh;vH5HmOA1MQ~jejXCa26h{gI$p;NlPu-=l4F65L1N9Y?C^9? zYT;p>Cyh&Dif81ApZq2D`a2$BX5!04geiuS7?L+cp53o`M&0J_nRJ%lr~xvcNyYy{x-R)E1ifgEbj8w(+9OmvEk!3S9VI&ZYeeJ9K*7 diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/MessageDef.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/MessageDef.java index a230ac3..59cc459 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/MessageDef.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/MessageDef.java @@ -1,8 +1,15 @@ package com.stone.date; +import android.util.Log; + public class MessageDef { - + + //SonarQube fix by XCP 2016-9-2 + private void dosomething(){ + Log.i("Why define this method:"," I don't know"); + } + //鏌ヨ鐢ㄦ埛璁㈠崟鎴愬姛瀹屾垚 public static final int MINE_FINISH_LOAD_DATA = 401; diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/TypeDef.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/TypeDef.java index 4cd2403..ba68ac7 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/TypeDef.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/date/TypeDef.java @@ -1,5 +1,7 @@ package com.stone.date; +import android.util.Log; + /** * 绫诲瀷鍒嗙被姹囨 * @@ -7,6 +9,11 @@ package com.stone.date; * @author Stone */ public class TypeDef { + + //SonarQube fix by XCP 2016-9-2 + private void dosomething(){ + Log.i("Why define this method:"," I don't know"); + } //鐖跺垎绫 public static final String[] typeDadList = { "瀛︿範", "鐐归", "鏍″洯鏈嶅姟", "濞变箰" }; diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/adapter/AIContentAdapter.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/adapter/AIContentAdapter.java index 7a56ed5..01a6fc8 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/adapter/AIContentAdapter.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/adapter/AIContentAdapter.java @@ -3,7 +3,6 @@ package com.stone.shop.adapter; import java.util.List; import com.stone.shop.R; -import com.stone.shop.model.Constant; import com.stone.shop.model.Discuss; import com.stone.shop.view.CommentActivity; import com.stone.util.ActivityUtil; @@ -24,8 +23,8 @@ public class AIContentAdapter extends BaseContentAdapter { public static final int SAVE_FAVOURITE = 2; public AIContentAdapter(Context context, List list) { - super(context, list); // TODO Auto-generated constructor stub + super(context, list); } @Override diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/LoginActivity.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/LoginActivity.java index 0a298e9..7999f8f 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/LoginActivity.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/LoginActivity.java @@ -144,32 +144,7 @@ public class LoginActivity extends Activity implements OnClickListener { switch (v.getId()) { // 鐧婚檰 case R.id.btn_login: - username = etUsername.getText().toString(); - password = etPassword.getText().toString(); - if (!Util.isNetworkConnected(this)) { - toast("鏈ㄦ湁缃戠粶 ( 鈯 o 鈯 ) "); - } else if ("".equals(username) || "".equals(password)) { - toast("璇疯緭鍏ヨ处鍙峰拰瀵嗙爜"); - break; - } else { - final User bu2 = new User(); - bu2.setUsername(username); - bu2.setPassword(password); - bu2.login(this, new SaveListener() { - @Override - public void onSuccess() { - toast("娆㈣繋杩涘叆 鍦ㄨ繖閲 鏈嶅姟绯荤粺"); - saveUserInfo(username, password); // 淇濆瓨鐢ㄦ埛淇℃伅 - User.userId = bu2.getObjectId(); // 璺宠浆鍒颁富椤 - Intent toHome = new Intent(LoginActivity.this, BaseActivity.class); - startActivity(toHome); - finish();} - @Override - public void onFailure(int arg0, String arg1) { - toast("鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒"); - } - }); - } + case_fun(); break; case R.id.btn_register: Intent toReg = new Intent(LoginActivity.this, RegisterActivity.class); @@ -182,6 +157,42 @@ public class LoginActivity extends Activity implements OnClickListener { break; } } + + /** + * SonarQube fix + * @author XCP + * @date 2016-9-2 + */ + public void case_fun(){ + + username = etUsername.getText().toString(); + password = etPassword.getText().toString(); + if (!Util.isNetworkConnected(this)) { + toast("鏈ㄦ湁缃戠粶 ( 鈯 o 鈯 ) "); + } else if ("".equals(username) || "".equals(password)) { + toast("璇疯緭鍏ヨ处鍙峰拰瀵嗙爜"); + return ; + } else { + final User bu2 = new User(); + bu2.setUsername(username); + bu2.setPassword(password); + bu2.login(this, new SaveListener() { + @Override + public void onSuccess() { + toast("娆㈣繋杩涘叆 鍦ㄨ繖閲 鏈嶅姟绯荤粺"); + saveUserInfo(username, password); // 淇濆瓨鐢ㄦ埛淇℃伅 + User.userId = bu2.getObjectId(); // 璺宠浆鍒颁富椤 + Intent toHome = new Intent(LoginActivity.this, BaseActivity.class); + startActivity(toHome); + finish();} + @Override + public void onFailure(int arg0, String arg1) { + toast("鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒"); + } + }); + } + } + public void toast(String toast) { Toast.makeText(this, toast, Toast.LENGTH_SHORT).show(); } diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MainActivity.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MainActivity.java index 23c925d..a0e48ce 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MainActivity.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MainActivity.java @@ -4,6 +4,7 @@ import com.stone.shop.R; import android.app.Activity; import android.os.Bundle; +import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; @@ -38,14 +39,16 @@ public class MainActivity extends Activity implements OnClickListener { tv.scrollBy(20, 0); int tvscrllX = tv.getScrollX(); int tvscrllY = tv.getScrollY(); - System.out.println( " tvscrllX ---> " + tvscrllX + " --- tvscrllY ---> "+tvscrllY); + //System.out.println( " tvscrllX ---> " + tvscrllX + " --- tvscrllY ---> "+tvscrllY); + Log.i("this is:", " tvscrllX ---> " + tvscrllX + " --- tvscrllY ---> "+tvscrllY);//SonarQube fix by XCP 2016-9-2 bt_scrollLeft.scrollBy(20, 0); break; case R.id.bt_scrollRight: tv.scrollTo(-100, 0); int tvscrllXx = tv.getScrollX(); int tvscrllYx = tv.getScrollY(); - System.out.println( " tvscrllX ---> " + tvscrllXx + " --- tvscrllY ---> "+tvscrllYx); + //System.out.println( " tvscrllX ---> " + tvscrllXx + " --- tvscrllY ---> "+tvscrllYx); + Log.i("this is:", " tvscrllX ---> " + tvscrllXx + " --- tvscrllY ---> "+tvscrllYx);//SonarQube fix by XCP 2016-9-2 break; default: break; diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MultiViewGroup.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MultiViewGroup.java index 7ed1113..00b3bd7 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MultiViewGroup.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/MultiViewGroup.java @@ -177,32 +177,7 @@ public class MultiViewGroup extends ViewGroup { mLastionMotionX = x ; break ; case MotionEvent.ACTION_UP: - final VelocityTracker velocityTracker = mVelocityTracker ; - velocityTracker.computeCurrentVelocity(1000); - int velocityX = (int) velocityTracker.getXVelocity() ; - Log.e(TAG , "---velocityX---" + velocityX); - //婊戝姩閫熺巼杈惧埌浜嗕竴涓爣鍑(蹇熷悜鍙虫粦灞忥紝杩斿洖涓婁竴涓睆骞) 椹笂杩涜鍒囧睆澶勭悊 - if (velocityX > SNAP_VELOCITY && curScreen > 0) { - // Fling enough to move left - Log.e(TAG, "snap left"); - snapToScreen(curScreen - 1); - } - //蹇熷悜宸︽粦灞忥紝杩斿洖涓嬩竴涓睆骞) - else if(velocityX < -SNAP_VELOCITY && curScreen < (getChildCount()-1)){ - Log.e(TAG, "snap right"); - snapToScreen(curScreen + 1); - } - //浠ヤ笂涓哄揩閫熺Щ鍔ㄧ殑 锛屽己鍒跺垏鎹㈠睆骞 - else{ - //鎴戜滑鏄紦鎱㈢Щ鍔ㄧ殑锛屽洜姝ゅ厛鍒ゆ柇鏄繚鐣欏湪鏈睆骞曡繕鏄埌涓嬩竴灞忓箷 - snapToDestination(); - } - - if (mVelocityTracker != null) { - mVelocityTracker.recycle(); - mVelocityTracker = null; - } - mTouchState = TOUCH_STATE_REST ; + case_fun(); break; case MotionEvent.ACTION_CANCEL: mTouchState = TOUCH_STATE_REST ; @@ -212,6 +187,41 @@ public class MultiViewGroup extends ViewGroup { } return true ; } + + /** + * SonarQube fix + * @author XCP + * @date 2016-9-2 + */ + public void case_fun(){ + final VelocityTracker velocityTracker = mVelocityTracker ; + velocityTracker.computeCurrentVelocity(1000); + int velocityX = (int) velocityTracker.getXVelocity() ; + Log.e(TAG , "---velocityX---" + velocityX); + //婊戝姩閫熺巼杈惧埌浜嗕竴涓爣鍑(蹇熷悜鍙虫粦灞忥紝杩斿洖涓婁竴涓睆骞) 椹笂杩涜鍒囧睆澶勭悊 + if (velocityX > SNAP_VELOCITY && curScreen > 0) { + // Fling enough to move left + Log.e(TAG, "snap left"); + snapToScreen(curScreen - 1); + } + //蹇熷悜宸︽粦灞忥紝杩斿洖涓嬩竴涓睆骞) + else if(velocityX < -SNAP_VELOCITY && curScreen < (getChildCount()-1)){ + Log.e(TAG, "snap right"); + snapToScreen(curScreen + 1); + } + //浠ヤ笂涓哄揩閫熺Щ鍔ㄧ殑 锛屽己鍒跺垏鎹㈠睆骞 + else{ + //鎴戜滑鏄紦鎱㈢Щ鍔ㄧ殑锛屽洜姝ゅ厛鍒ゆ柇鏄繚鐣欏湪鏈睆骞曡繕鏄埌涓嬩竴灞忓箷 + snapToDestination(); + } + + if (mVelocityTracker != null) { + mVelocityTracker.recycle(); + mVelocityTracker = null; + } + mTouchState = TOUCH_STATE_REST ; + } + ////鎴戜滑鏄紦鎱㈢Щ鍔ㄧ殑 private void snapToDestination(){ //褰撳墠鐨勫亸绉讳綅缃 diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopActivity.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopActivity.java index 7c89d8b..973072c 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopActivity.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopActivity.java @@ -64,20 +64,7 @@ public class ShopActivity extends Activity implements OnItemClickListener{ //鐐瑰嚮 瀛︿範灏忚彍 涓殑瀛愰」锛1浠h〃绗竴涓狦ridView, (position+1)浠h〃GridView涓鍑犱釜鍏冪礌锛 case R.id.gv_school_class: - //鏁欏绫荤殑鍋氱壒鍒鐞 - if(position==2) { - Intent toInformationActivity = new Intent(ShopActivity.this,InformationActivity.class); - startActivity(toInformationActivity); - } - if(position==1) { - Intent toBXTActivity = new Intent(ShopActivity.this,LibraryActivity.class); - startActivity(toBXTActivity); - } - if(position==0) { - Intent toBXTActivity = new Intent(ShopActivity.this, ClassroomActivity.class); - startActivity(toBXTActivity); - } - + case_fun(position); break; //鐐瑰嚮 鍚冮キ灏忚彍 涓殑瀛愰」 case R.id.gv_food_class: @@ -99,6 +86,29 @@ public class ShopActivity extends Activity implements OnItemClickListener{ } } + /** + * SonarQube fix + * @author XCP + * @param position + * @date 2016-9-2 + */ + public void case_fun(int position){ + //鏁欏绫荤殑鍋氱壒鍒鐞 + if(position==2) { + Intent toInformationActivity = new Intent(ShopActivity.this,InformationActivity.class); + startActivity(toInformationActivity); + } + if(position==1) { + Intent toBXTActivity = new Intent(ShopActivity.this,LibraryActivity.class); + startActivity(toBXTActivity); + } + if(position==0) { + Intent toBXTActivity = new Intent(ShopActivity.this, ClassroomActivity.class); + startActivity(toBXTActivity); + } + + } + private void toast(String toast) { Toast.makeText(this, toast, Toast.LENGTH_SHORT).show(); } diff --git a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopItemActivity.java b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopItemActivity.java index 4f6d7c4..a8fc390 100644 --- a/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopItemActivity.java +++ b/浠g爜/鍦ㄨ繖閲3.0_鏈缁堢増/src/com/stone/shop/view/ShopItemActivity.java @@ -204,15 +204,7 @@ public class ShopItemActivity extends Activity implements OnClickListener, OnIte public void onClick(View v) { switch (v.getId()) { case R.id.btn_commit: - if ("".equals(etCommit.getText().toString())) {toast("浜诧紝鍏堝啓涓鍙ュ惂");} - else { - SimpleDateFormat formatter = new SimpleDateFormat("yyyy骞碝M鏈坉d鏃 HH:mm:ss "); - Date curDate = new Date(System.currentTimeMillis());// 鑾峰彇褰撳墠鏃堕棿 - String time = formatter.format(curDate); - String content = etCommit.getText().toString() + " [ " + time+ " ] "; - insertCommit("admin" + ":", content); - etCommit.setText(""); - } + case_fun_1(); break; case R.id.img_call: toast("搴椾富娌℃湁鐣欎笅鐢佃瘽"); @@ -227,16 +219,7 @@ public class ShopItemActivity extends Activity implements OnClickListener, OnIte long id) { switch (viewPager.getCurrentItem()) { case 0: - toast("閫夋嫨鐨勫晢鍝佸悕绉帮細 " + goodsList.get(position).getName()); - selectGood = goodsList.get(position); - toast("鐐瑰嚮浜嗚喘涔版寜閽"); - Intent toOrderActivity = new Intent(ShopItemActivity.this, OrderActivity.class); - Bundle bundle = new Bundle(); - bundle.putSerializable("shop", shop ); - bundle.putSerializable("good", selectGood); - bundle.putString("shopID", shopID); //鍟嗛摵鐨処D闇瑕佸崟鐙紶閫,鍚﹀垯鑾峰彇鍒扮殑鏄痭ull - toOrderActivity.putExtras(bundle); - startActivity(toOrderActivity); + case_fun_2(position); break; case 1: break; @@ -245,6 +228,47 @@ public class ShopItemActivity extends Activity implements OnClickListener, OnIte } } + + /** + * SonarQube fix + * @date 2016-9-2 + * @author XCP + */ + + public void case_fun_1(){ + + if ("".equals(etCommit.getText().toString())) {toast("浜诧紝鍏堝啓涓鍙ュ惂");} + else { + SimpleDateFormat formatter = new SimpleDateFormat("yyyy骞碝M鏈坉d鏃 HH:mm:ss "); + Date curDate = new Date(System.currentTimeMillis());// 鑾峰彇褰撳墠鏃堕棿 + String time = formatter.format(curDate); + String content = etCommit.getText().toString() + " [ " + time+ " ] "; + insertCommit("admin" + ":", content); + etCommit.setText(""); + } + } + + /** + * SonarQube fix + * @date 2016-9-2 + * @author XCP + * @param position + */ + + public void case_fun_2(int position){ + + toast("閫夋嫨鐨勫晢鍝佸悕绉帮細 " + goodsList.get(position).getName()); + selectGood = goodsList.get(position); + toast("鐐瑰嚮浜嗚喘涔版寜閽"); + Intent toOrderActivity = new Intent(ShopItemActivity.this, OrderActivity.class); + Bundle bundle = new Bundle(); + bundle.putSerializable("shop", shop ); + bundle.putSerializable("good", selectGood); + bundle.putString("shopID", shopID); //鍟嗛摵鐨処D闇瑕佸崟鐙紶閫,鍚﹀垯鑾峰彇鍒扮殑鏄痭ull + toOrderActivity.putExtras(bundle); + startActivity(toOrderActivity); + } + public void toast(String toast) { Toast.makeText(this, toast, Toast.LENGTH_SHORT).show(); }