@@ -134,41 +134,41 @@ private void process(Client client) {
134134 throw new JedisException ("Unknown message type: " + firstObj );
135135 }
136136 final byte [] resp = (byte []) firstObj ;
137- if (Arrays .equals (SUBSCRIBE .raw , resp )) {
137+ if (Arrays .equals (SUBSCRIBE .getRaw () , resp )) {
138138 subscribedChannels = ((Long ) reply .get (2 )).intValue ();
139139 final byte [] bchannel = (byte []) reply .get (1 );
140140 final String strchannel = (bchannel == null ) ? null : SafeEncoder .encode (bchannel );
141141 onSubscribe (strchannel , subscribedChannels );
142- } else if (Arrays .equals (UNSUBSCRIBE .raw , resp )) {
142+ } else if (Arrays .equals (UNSUBSCRIBE .getRaw () , resp )) {
143143 subscribedChannels = ((Long ) reply .get (2 )).intValue ();
144144 final byte [] bchannel = (byte []) reply .get (1 );
145145 final String strchannel = (bchannel == null ) ? null : SafeEncoder .encode (bchannel );
146146 onUnsubscribe (strchannel , subscribedChannels );
147- } else if (Arrays .equals (MESSAGE .raw , resp )) {
147+ } else if (Arrays .equals (MESSAGE .getRaw () , resp )) {
148148 final byte [] bchannel = (byte []) reply .get (1 );
149149 final byte [] bmesg = (byte []) reply .get (2 );
150150 final String strchannel = (bchannel == null ) ? null : SafeEncoder .encode (bchannel );
151151 final String strmesg = (bmesg == null ) ? null : SafeEncoder .encode (bmesg );
152152 onMessage (strchannel , strmesg );
153- } else if (Arrays .equals (PMESSAGE .raw , resp )) {
153+ } else if (Arrays .equals (PMESSAGE .getRaw () , resp )) {
154154 final byte [] bpattern = (byte []) reply .get (1 );
155155 final byte [] bchannel = (byte []) reply .get (2 );
156156 final byte [] bmesg = (byte []) reply .get (3 );
157157 final String strpattern = (bpattern == null ) ? null : SafeEncoder .encode (bpattern );
158158 final String strchannel = (bchannel == null ) ? null : SafeEncoder .encode (bchannel );
159159 final String strmesg = (bmesg == null ) ? null : SafeEncoder .encode (bmesg );
160160 onPMessage (strpattern , strchannel , strmesg );
161- } else if (Arrays .equals (PSUBSCRIBE .raw , resp )) {
161+ } else if (Arrays .equals (PSUBSCRIBE .getRaw () , resp )) {
162162 subscribedChannels = ((Long ) reply .get (2 )).intValue ();
163163 final byte [] bpattern = (byte []) reply .get (1 );
164164 final String strpattern = (bpattern == null ) ? null : SafeEncoder .encode (bpattern );
165165 onPSubscribe (strpattern , subscribedChannels );
166- } else if (Arrays .equals (PUNSUBSCRIBE .raw , resp )) {
166+ } else if (Arrays .equals (PUNSUBSCRIBE .getRaw () , resp )) {
167167 subscribedChannels = ((Long ) reply .get (2 )).intValue ();
168168 final byte [] bpattern = (byte []) reply .get (1 );
169169 final String strpattern = (bpattern == null ) ? null : SafeEncoder .encode (bpattern );
170170 onPUnsubscribe (strpattern , subscribedChannels );
171- } else if (Arrays .equals (PONG .raw , resp )) {
171+ } else if (Arrays .equals (PONG .getRaw () , resp )) {
172172 final byte [] bpattern = (byte []) reply .get (1 );
173173 final String strpattern = (bpattern == null ) ? null : SafeEncoder .encode (bpattern );
174174 onPong (strpattern );
0 commit comments