1 | public without sharing class SomeWithoutSharingClass {
|
2 | private static Map<String, SomeObject__c> privateStaticStringToObjectMap
|
3 | public static Map<String, SomeObject__c> publicStaticStringToObjectMap
|
4 |
|
5 | public static void staticMethodWithoutReturnAndArgs () {
|
6 |
|
7 | }
|
8 |
|
9 | public void methodWithoutReturnAndArgs () {
|
10 |
|
11 | }
|
12 |
|
13 | public static void staticMethodWithoutReturn (String stringArg) {
|
14 |
|
15 | }
|
16 |
|
17 | public void methodWithoutReturn (String stringArg) {
|
18 |
|
19 | }
|
20 |
|
21 | public void methodWithLoop () {
|
22 | for (Object o : OtherClass.getObjects()) {
|
23 | methodWithoutReturnAndArgs()
|
24 | SomeWithoutSharingClass.staticMethodWithoutReturnAndArgs()
|
25 | }
|
26 | }
|
27 |
|
28 | public List<Account> methodWithOneLineSOQL () {
|
29 | return [SELECT Id FROM Account]
|
30 | }
|
31 |
|
32 | public List<Account> methodWithMultipleLinesSOQL () {
|
33 | return [
|
34 | SELECT
|
35 | Id
|
36 | ,Name
|
37 | FROM Account
|
38 | ]
|
39 | }
|
40 |
|
41 |
|
42 | } |
\ | No newline at end of file |