Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckJonas authored Oct 10, 2019
1 parent c0ca867 commit dbbb051
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class OhGodBees extends Exception{}
//fails: OhGodBees: Classes extending Exception must have a name ending in 'Exception'
```

Constructors:
and their Constructors:

```java
public class BeesException extends Exception{
Expand Down Expand Up @@ -153,7 +153,7 @@ Meaning the following cannot be parsed or generated using `JSON.deserialize` or

### Generics (parameterized interfaces) exist, but you can't use them

Apparently, once upon a time, generics were part of Apex. However, they have since been removed (with the exception of system classes (`List<>`, `Batchable<>`, etc).
Once upon a time, generics were actually part of Apex. However, they have since been removed (with the exception of system classes (`List<>`, `Batchable<>`, etc).

Why would you want generics when your OS has perfectly good Copy & Paste functionality built right into it?

Expand All @@ -170,7 +170,7 @@ ImAbstract orAmI = (ImAbstract) JSON.deserialize('{"foo":"bar"}', ImAbstract.cla
System.debug(orAmI.foo);
```

[source](https://salesforce.stackexchange.com/questions/250184/can-create-an-instance-of-abstract-class-salesforce-bug?atw=1)
See [Stack Exchange Post](https://salesforce.stackexchange.com/questions/250184/can-create-an-instance-of-abstract-class-salesforce-bug?atw=1)

### Polymorphic Primatives

Expand All @@ -184,16 +184,16 @@ System.debug(x instanceOf Decimal); // true

Source [Daniel Ballinger](https://twitter.com/FishOfPrey/status/1051965154454265856)


## Since Fixed

Thankfully these WTFs have since been fixed by Salesforce. We'll keep them documented for historical purposes (and entertainment).
Thankfully, these WTFs have since been fixed by Salesforce. We'll keep them documented for historical purposes (and entertainment).

### Mutating Datetimes

https://twitter.com/FishOfPrey/status/869381316105588736

### More hashcode fun

https://twitter.com/FishOfPrey/status/1016821563675459585

https://salesforce.stackexchange.com/questions/224490/bug-in-list-contains-for-id-data-type

0 comments on commit dbbb051

Please sign in to comment.