This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DeviceController { | |
| … | |
| public void sendShutDown() { | |
| DeviceHandle handle = getHandle(DEV1); | |
| // Cihazın durumunu kontrol et | |
| if (handle != DeviceHandle.INVALID) { | |
| // Cihazın durumunu kaydet | |
| retrieveDeviceRecord(handle); | |
| // Cihaz "Suspended" değil ise, cihazı kapat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DeviceController { | |
| … | |
| public void sendShutDown() { | |
| try { | |
| tryToShutDown(); | |
| } catch (DeviceShutDownError e) { | |
| logger.log(e); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ACMEPort port = new ACMEPort(12); | |
| try { | |
| port.open(); | |
| } catch (DeviceResponseException e) { | |
| reportPortError(e); | |
| logger.log("Device response exception", e); | |
| } catch (ATM1212UnlockedException e) { | |
| reportPortError(e); | |
| logger.log("Unlock exception", e); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LocalPort { | |
| private ACMEPort innerPort; | |
| public LocalPort(int portNumber) { | |
| innerPort = new ACMEPort(portNumber); | |
| } | |
| public void open() { | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LocalPort port = new LocalPort(12); | |
| try { | |
| port.open(); | |
| } catch (PortDeviceFailure e) { | |
| reportError(e); | |
| logger.log(e.getMessage(), e); | |
| } finally { | |
| … | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void registerItem(Item item) { | |
| if (item != null) { | |
| ItemRegistry registry = peristentStore.getItemRegistry(); | |
| if (registry != null) { | |
| Item existing = registry.getItem(item.getID()); | |
| if (existing.getBillingPeriod().hasRetailOwner()) { | |
| existing.register(item); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<Employee> employees = getEmployees(); | |
| if (employees != null) { | |
| for(Employee e : employees) { | |
| totalPay += e.getPay(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<Employee> employees = getEmployees(); | |
| for(Employee e : employees) { | |
| totalPay += e.getPay(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void dummyFunction() { | |
| ... | |
| .append(); | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void dummyFunction() { | |
| ... | |
| .getHtml(); | |
| ... | |
| } |